Skip to content

Commit 9ecf606

Browse files
committed
ci: update the action and tox
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 8646218 commit 9ecf606

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- main
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
FORCE_COLOR: "1"
1216

@@ -34,9 +38,7 @@ jobs:
3438
python-version: ${{ matrix.python-version }}
3539

3640
- name: Install test dependencies
37-
run: |
38-
python -m pip install --upgrade pip
39-
pip install tox tox-gh-actions
41+
run: pip install tox tox-gh-actions
4042

4143
- name: Test packaging
4244
run: tox -e pkg

tox.ini

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311,312}-pytest{6,7}-{linux,windows}
3+
py{37,38,39,310,311,312}-pytest{6,7,8}
44
pkg
55

66
[gh-actions]
@@ -12,22 +12,19 @@ python =
1212
3.11: py311
1313
3.12: py312
1414

15-
[gh-actions:env]
16-
PLATFORM =
17-
ubuntu-latest: linux
18-
windows-latest: windows
19-
2015
PYTEST_MAJOR_VERSION =
2116
6: pytest6
2217
7: pytest7
18+
8: pytest8
2319

2420
[testenv]
2521
deps =
2622
-rrequirements.txt
2723
pytest6: pytest>=6.0.0,<7.0.0
2824
pytest7: pytest>=7.0.0,<7.4.0
25+
pytest8: pytest>=8.0.0,<9.0.0
2926

30-
commands = {envpython} -m pytest
27+
commands = {envpython} -m pytest {posargs}
3128

3229
[testenv:pkg]
3330
skip_install = true

0 commit comments

Comments
 (0)