Skip to content

Commit

Permalink
ci(pytest): Uploading test results to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Dec 6, 2024
1 parent 57307c7 commit 81a7e33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
- name: Install dependencies
run: poetry install -E test
- name: Run tests with coverage report
run: poetry run pytest --cov-report=xml

run: poetry run pytest --cov-report=xml --junitxml=junit.xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion libertai_agents/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
.coverage
.coverage.*
/htmlcov
coverage.xml
coverage.xml
junit.xml

0 comments on commit 81a7e33

Please sign in to comment.