Skip to content

Commit 3b9965a

Browse files
committed
update tox config for v4, update tests workflow
1 parent 3b0d3c2 commit 3b9965a

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/tests.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,31 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27+
- {name: '3.11', python: '3.11', tox: py311}
28+
- {name: 'Lowest', python: '3.11', tox: py311-lowest}
2729
- {name: '3.10', python: '3.10', tox: py310}
28-
- {name: 'Lowest', python: '3.10', tox: py310-lowest}
2930
- {name: '3.9', python: '3.9', tox: py39}
3031
- {name: '3.8', python: '3.8', tox: py38}
3132
- {name: '3.7', python: '3.7', tox: py37}
32-
- {name: 'Typing', python: '3.10', os: ubuntu-latest, tox: typing}
33+
- {name: 'Typing', python: '3.11', os: ubuntu-latest, tox: typing}
3334
steps:
34-
- uses: actions/checkout@v3
35-
- uses: actions/setup-python@v4
35+
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
36+
- uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
3637
with:
3738
python-version: ${{ matrix.python }}
3839
cache: 'pip'
3940
cache-dependency-path: 'pdm.lock'
40-
- uses: actions/cache@v3
41+
- uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
4142
with:
4243
path: ~/.cache/pdm
4344
key: ${{ matrix.python }}-pdm-${{ hashFiles('pdm.lock') }}
4445
restore-keys: ${{ matrix.python }}-pdm-
46+
- name: cache mypy
47+
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
48+
with:
49+
path: ./.mypy_cache
50+
key: mypy|${{ matrix.python }}|${{ hashFiles('pyproject.toml') }}
51+
if: matrix.tox == 'typing'
4552
- run: |
4653
pip install pdm
4754
pdm config install.cache true

tox.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[tox]
22
envlist =
33
py3{11,10,9,8,7}
4-
pypy3{9,8,7}
5-
py310-lowest
4+
pypy39
5+
py311-lowest
66
style
77
typing
88
docs
99
skip_missing_interpreters = true
10-
isolated_build = true
1110

1211
[testenv]
12+
package = wheel
13+
wheel_build_env = .pkg
1314
groups = tests
1415
deps =
1516
lowest: flask==2.2
@@ -19,12 +20,16 @@ commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs}
1920
[testenv:style]
2021
groups = pre-commit
2122
skip_install = true
22-
commands = pre-commit run --all-files --show-diff-on-failure
23+
commands = pre-commit run --all-files
2324

2425
[testenv:typing]
26+
package = wheel
27+
wheel_build_env = .pkg
2528
groups = mypy
2629
commands = mypy
2730

2831
[testenv:docs]
32+
package = wheel
33+
wheel_build_env = .pkg
2934
groups = docs
3035
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html

0 commit comments

Comments
 (0)