Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fed581a

Browse files
committed
github actions should run all relevant tox environments
1 parent 5fa2e49 commit fed581a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525

2626
jobs:
2727
tests:
28-
name: "Test ${{ matrix.python-version }} on ${{ matrix.os }}"
28+
name: "Test 3.${{ matrix.py }} on ${{ matrix.os }}"
2929
runs-on: "${{ matrix.os }}-latest"
3030

3131
strategy:
@@ -35,10 +35,10 @@ jobs:
3535
- ubuntu
3636
- macos
3737
- windows
38-
python-version:
39-
- 3.12
40-
- 3.13
41-
- 3.14
38+
py:
39+
- 12
40+
- 13
41+
- 14
4242

4343
steps:
4444
- name: "Check out the repo"
@@ -50,20 +50,20 @@ jobs:
5050
id: "setup-python"
5151
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
5252
with:
53-
python-version: "${{ matrix.python-version }}"
53+
python-version: "3.${{ matrix.py }}"
5454

5555
- name: "Install dependencies"
5656
run: |
5757
python -m pip install .[dev]
5858
5959
- name: "Run tests"
6060
run: |
61-
python -m tox -e py
61+
python -m tox -f py3${{ matrix.py }}
6262
6363
- name: "Upload coverage data"
6464
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
6565
with:
66-
name: covdata-${{ matrix.os }}-${{ matrix.python-version }}
66+
name: covdata-${{ matrix.os }}-${{ matrix.py }}
6767
path: .coverage.*
6868
include-hidden-files: true
6969

0 commit comments

Comments
 (0)