File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,13 +72,20 @@ jobs:
7272
7373 - name : Run tests
7474 run : |
75- uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
75+ uv run pytest --junitxml=pytest.xml --tb=auto -- cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
7676
7777 - name : Pytest Coverage Comment
7878 uses : MishaKav/pytest-coverage-comment@v1.1.56
7979 with :
8080 junitxml-path : ./cov.xml
8181
82+ - name : Upload test results
83+ uses : actions/upload-artifact@v4 # upload test results
84+ if : ${{ !cancelled() }} # run this step even if previous step failed
85+ with :
86+ name : test-results
87+ path : pytest.xml
88+
8289 - name : Build package
8390 run : |
8491 uv build
Original file line number Diff line number Diff line change 1+ name : " Test Report"
2+ on :
3+ workflow_run :
4+ workflows : ["build-and-test"]
5+ types :
6+ - completed
7+
8+ permissions :
9+ contents : read
10+ actions : read
11+ checks : write
12+
13+ jobs :
14+ report :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : dorny/test-reporter@v2
18+ with :
19+ artifact : test-results
20+ name : Tests
21+ path : " *.xml"
22+ reporter : java-junit
You can’t perform that action at this time.
0 commit comments