File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Automated testing
2+
3+ on : push
4+
5+ jobs :
6+ test :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ matrix :
10+ python-version : ["3.11", "3.12", "3.13"]
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Setup Python
15+ uses : actions/setup-python@v5
16+ with :
17+ python-version : ${{ matrix.python-version }}
18+
19+ - name : Install dependencies
20+ run : python -m pip install -r requirements.txt
21+
22+ - name : Build and install package
23+ run : python -m pip install .
24+
25+ - name : Test with pytest
26+ run : python -m pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
27+
28+ - name : Upload pytest test results
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : pytest-results-${{ matrix.python-version }}
32+ path : junit/test-results-${{ matrix.python-version }}.xml
33+ if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments