@@ -5,18 +5,21 @@ on: [push, pull_request]
5
5
jobs :
6
6
test :
7
7
runs-on : ubuntu-22.04
8
-
8
+ strategy :
9
+ matrix :
10
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"] # Test on multiple Python versions
11
+
9
12
steps :
10
13
- name : Checkout repository
11
14
uses : actions/checkout@v2
12
15
13
- - name : Set up Python
16
+ - name : Set up Python ${{ matrix.python-version }}
14
17
15
18
uses : actions/setup-python@v2
16
19
with :
17
20
# until saxonche is available in 3.13
18
21
# https://saxonica.plan.io/issues/6561
19
- python-version : " <3.13 "
22
+ python-version : ${{ matrix.python-version }}
20
23
- name : Display Python version
21
24
run : python -c "import sys; print(sys.version)"
22
25
@@ -32,22 +35,14 @@ jobs:
32
35
source venv/bin/activate
33
36
python -m pytest -n=auto --cov=imas --cov-report=term-missing --cov-report=xml:coverage.xml --cov-report=html:htmlcov --junit-xml=junit.xml
34
37
35
- - name : Upload coverage report
38
+ - name : Upload coverage report ${{ matrix.python-version }}
36
39
uses : actions/upload-artifact@v4
37
40
with :
38
- name : coverage-report
41
+ name : coverage-report-${{ matrix.python-version }}
39
42
path : htmlcov
40
43
41
- - name : Upload test report
44
+ - name : Upload test report ${{ matrix.python-version }}
42
45
uses : actions/upload-artifact@v4
43
46
with :
44
- name : test-report
47
+ name : test-report-${{ matrix.python-version }}
45
48
path : junit.xml
46
-
47
- - name : Pytest coverage comment
48
- uses : MishaKav/pytest-coverage-comment@main
49
- with :
50
- pytest-xml-coverage-path : ./coverage.xml
51
- junitxml-path : ./junit.xml
52
- xml-skip-covered : true
53
- hide-report : true
0 commit comments