From 44e5bb9177b093725323b1afa9aab22d82a1e64e Mon Sep 17 00:00:00 2001 From: Wong Chun Hong Date: Tue, 29 Aug 2023 22:45:34 +0100 Subject: [PATCH] update tested py versions with 3.11 default --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/tests.yml | 2 +- .travis.yml | 15 ++++++++------- tox.ini | 13 ++++++------- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 07c0766f..65161f8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.11 - name: Build wheel and source tarball run: | pip install wheel diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a137a617..2b534fee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,10 +8,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f124e60a..98e5a851 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10-dev"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"] steps: - uses: actions/checkout@v2 diff --git a/.travis.yml b/.travis.yml index 40d0415e..c00c7618 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,10 +2,11 @@ language: python dist: xenial python: - - "2.7" - - "3.5" - - "3.6" - - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" install: - pip install tox tox-travis @@ -27,11 +28,11 @@ jobs: fast_finish: true include: - env: TOXENV=pre-commit - python: 3.7 + python: 3.11 - env: TOXENV=mypy - python: 3.7 + python: 3.11 - stage: deploy - python: 3.7 + python: 3.11 after_success: true deploy: provider: pypi diff --git a/tox.ini b/tox.ini index 5a555042..be45ceea 100644 --- a/tox.ini +++ b/tox.ini @@ -1,26 +1,25 @@ [tox] -envlist = py{27,36,37,38,39,310},flake8,pre-commit,mypy +envlist = py3{8,9,10,11,12-dev},flake8,pre-commit,mypy [gh-actions] python = - 2.7: py27 - 3.6: py36 - 3.7: py37 3.8: py38 3.9: py39 - 3.10-dev: py310 + 3.10: py310 + 3.11: py311 + 3.12-dev: py312 [testenv] passenv = * usedevelop = True deps = -e.[test] - py{36,37,38,39,310}: pytest-asyncio + py3{8,9,10,11,12-dev}: pytest-asyncio setenv = PYTHONPATH = .:{envdir} commands = py{27}: py.test --cov=graphene graphene examples {posargs} - py{36,37,38,39,310}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs} + py3{8,9,10,11,12-dev}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs} [testenv:pre-commit] deps =