Skip to content

Commit

Permalink
Fix publish test results
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierteres committed Oct 3, 2023
1 parent cd1840c commit 3505ba9
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,13 @@ jobs:
run: |
cd ${{github.workspace}}
pip install -e .
pip install coverage
pip install unittest-xml-reporting
- name: Run Tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ESIOS_TOKEN: ${{ secrets.ESIOS_TOKEN }}
SRID: ${{ secrets.SRID }}
run: |
cd ${{github.workspace}}
coverage run -m unittest tests
coverage xml -i
python -m xmlrunner discover -o test-reports
- name: Publish Unit Test Results
if: (success() || failure()) && matrix.python-version == '2.7' && github.event_name == 'pull_request'
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: ${{github.workspace}}/*.xml
files: ${{github.workspace}}/test-reports/*.xml

0 comments on commit 3505ba9

Please sign in to comment.