@@ -5,18 +5,21 @@ on: [push, pull_request]
55jobs :
66 test :
77 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+
912 steps :
1013 - name : Checkout repository
1114 uses : actions/checkout@v2
1215
13- - name : Set up Python
16+ - name : Set up Python ${{ matrix.python-version }}
1417
1518 uses : actions/setup-python@v2
1619 with :
1720 # until saxonche is available in 3.13
1821 # https://saxonica.plan.io/issues/6561
19- python-version : " <3.13 "
22+ python-version : ${{ matrix.python-version }}
2023 - name : Display Python version
2124 run : python -c "import sys; print(sys.version)"
2225
@@ -32,22 +35,14 @@ jobs:
3235 source venv/bin/activate
3336 python -m pytest -n=auto --cov=imas --cov-report=term-missing --cov-report=xml:coverage.xml --cov-report=html:htmlcov --junit-xml=junit.xml
3437
35- - name : Upload coverage report
38+ - name : Upload coverage report ${{ matrix.python-version }}
3639 uses : actions/upload-artifact@v4
3740 with :
38- name : coverage-report
41+ name : coverage-report-${{ matrix.python-version }}
3942 path : htmlcov
4043
41- - name : Upload test report
44+ - name : Upload test report ${{ matrix.python-version }}
4245 uses : actions/upload-artifact@v4
4346 with :
44- name : test-report
47+ name : test-report-${{ matrix.python-version }}
4548 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