@@ -17,28 +17,28 @@ jobs:
17
17
18
18
run-tests :
19
19
20
- name : Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
20
+ name : Run tests for ${{ matrix.os }} on ${{ matrix.environment }}
21
21
runs-on : ${{ matrix.os }}
22
22
23
23
strategy :
24
24
fail-fast : false
25
25
matrix :
26
26
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
27
- python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ', '3.12 ']
27
+ environment : ['py38 ', 'py39 ', 'py310 ', 'py311 ', 'py312 ']
28
28
29
29
steps :
30
30
- uses : actions/checkout@v4
31
31
-
uses :
prefix-dev/[email protected]
32
32
with :
33
33
pixi-version : v0.20.1
34
34
cache : true
35
- environments : test
35
+ environments : ${{ matrix.environment }}
36
36
37
37
# Unit, integration, and end-to-end tests.
38
38
39
39
- name : Run unit tests and doctests.
40
40
shell : bash -l {0}
41
- run : pixi run -e test pytest -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
41
+ run : pixi run -e ${{ matrix.environment }} test -m "unit or (not integration and not end_to_end)" --cov-report=xml -n auto
42
42
43
43
- name : Upload unit test coverage reports to Codecov with GitHub Action
44
44
uses : codecov/codecov-action@v4
47
47
48
48
- name : Run end-to-end tests.
49
49
shell : bash -l {0}
50
- run : pixi run -e test pytest -m end_to_end --cov=./ --cov-report=xml -n auto
50
+ run : pixi run -e ${{ matrix.environment }} test -m end_to_end --cov-report=xml -n auto
51
51
52
52
- name : Upload end_to_end test coverage reports to Codecov with GitHub Action
53
53
uses : codecov/codecov-action@v4
0 commit comments