Skip to content

Commit

Permalink
Revert to action but generate xml before
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRosier committed Oct 9, 2024
1 parent cbbcd55 commit 675ee11
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ jobs:
- name: Test with pytest
run: |
python -m poetry run coverage run --source=panoptica -m pytest
python -m poetry run coverage xml
- name: Upload results to Codecov
# Only upload to Codecov after a merge to the main branch
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
pip install codecov-cli
codecovcli --verbose upload-process --disable-search -t ${{ secrets.CODECOV_TOKEN }} -n 'job-name'-${{ github.run_id }} -f .coverage
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 675ee11

Please sign in to comment.