update tested py versions with 3.11 default

This commit is contained in:
Wong Chun Hong 2023-08-29 22:45:34 +01:00
parent db05a9add6
commit 44e5bb9177
5 changed files with 19 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

13
tox.ini
View File

@ -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 =