Skip to content

Commit d166c3b

Browse files
committed
update tested python versions
test 3.11 final test 3.12 dev update for tox 4
1 parent 315acb0 commit d166c3b

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.github/workflows/tests.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27-
- {name: Linux, python: '3.10', os: ubuntu-latest, tox: py310}
28-
- {name: Windows, python: '3.10', os: windows-latest, tox: py310}
29-
- {name: Mac, python: '3.10', os: macos-latest, tox: py310}
30-
- {name: '3.11-dev', python: '3.11-dev', os: ubuntu-latest, tox: py311}
27+
- {name: Linux, python: '3.11', os: ubuntu-latest, tox: py311}
28+
- {name: Windows, python: '3.11', os: windows-latest, tox: py311}
29+
- {name: Mac, python: '3.11', os: macos-latest, tox: py311}
30+
- {name: '3.12-dev', python: '3.12-dev', os: ubuntu-latest, tox: py312}
31+
- {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310}
3132
- {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39}
3233
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
3334
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
34-
- {name: 'PyPy', python: 'pypy-3.7', os: ubuntu-latest, tox: pypy37}
35-
- {name: Typing, python: '3.10', os: ubuntu-latest, tox: typing}
35+
- {name: 'PyPy', python: 'pypy-3.9', os: ubuntu-latest, tox: pypy39}
36+
- {name: Typing, python: '3.11', os: ubuntu-latest, tox: typing}
3637
steps:
37-
- uses: actions/checkout@v2
38-
- uses: actions/setup-python@v2
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-python@v4
3940
with:
4041
python-version: ${{ matrix.python }}
4142
cache: 'pip'
@@ -46,10 +47,10 @@ jobs:
4647
pip install -U setuptools
4748
python -m pip install -U pip
4849
- name: cache mypy
49-
uses: actions/cache@v2
50+
uses: actions/cache@v3
5051
with:
5152
path: ./.mypy_cache
5253
key: mypy|${{ matrix.python }}|${{ hashFiles('setup.cfg') }}
5354
if: matrix.tox == 'typing'
5455
- run: pip install tox
55-
- run: tox -e ${{ matrix.tox }}
56+
- run: tox run -e ${{ matrix.tox }}

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
[tox]
22
envlist =
3-
py3{11,10,9,8,7},pypy3{8,7}
3+
py3{12,11,10,9,8,7}
4+
pypy39
45
style
56
typing
67
docs
78
skip_missing_interpreters = true
89

910
[testenv]
11+
package = wheel
1012
deps = -r requirements/tests.txt
1113
commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}
1214

1315
[testenv:style]
1416
deps = pre-commit
1517
skip_install = true
16-
commands = pre-commit run --all-files --show-diff-on-failure
18+
commands = pre-commit run --all-files
1719

1820
[testenv:typing]
21+
package = wheel
1922
deps = -r requirements/typing.txt
2023
commands = mypy
2124

2225
[testenv:docs]
26+
package = wheel
2327
deps = -r requirements/docs.txt
2428
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html

0 commit comments

Comments
 (0)