Skip to content

Commit

Permalink
ci: fix test results
Browse files Browse the repository at this point in the history
  • Loading branch information
cachitas authored Apr 18, 2024
1 parent 117075e commit 49062b9
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,34 @@ jobs:
- name: Test with pytest
run: |
pdm run -v test --junitxml=junit/test-results-${{ matrix.python-version }}.xml
pdm run -v test --junit-xml pytest.xml
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}
path: pytest.xml

publish-test-results:
name: "Publish Tests Results"
runs-on: ubuntu-latest
needs: test
permissions:
checks: write
pull-requests: write
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "artifacts/**/*.xml"


release:
name: Release new version
Expand Down

0 comments on commit 49062b9

Please sign in to comment.