Skip to content

Commit 59028ff

Browse files
committed
Update GitHub Actions workflow to enhance test reporting
- Modify pytest command to include JUnit XML output for better test result integration. - Replace Codacy coverage upload step with Codecov integration for improved coverage reporting.
1 parent 309de37 commit 59028ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
3030
- name: 🧪 Run pytest
3131
run: |
32-
pytest --cov=. --cov-report=xml
32+
pytest --cov=. --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
3333
34-
- name: Set up Codacy Project Token
35-
run: echo "CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }}" >> $GITHUB_ENV
36-
37-
- name: Upload coverage reports to Codacy
38-
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r coverage.xml
34+
- name: Upload test results to Codecov
35+
if: ${{ !cancelled() }}
36+
uses: codecov/test-results-action@v1
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
3939

4040
prepare-release:
4141
name: 🏷️ Prepare Release

0 commit comments

Comments
 (0)