Skip to content

Commit

Permalink
Setup test results report with Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
renanivo committed Dec 30, 2024
1 parent 2bc9400 commit df7d092
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ jobs:
uses: codecov/[email protected]
with:
name: ${{ matrix.os }} Python ${{ matrix.python-version }} ${{ matrix.pytest }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ __pycache__/

.coverage
coverage.xml
junit.xml
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install: ## Install package for development
@pip install -r requirements-dev.txt

test:
@pytest tests/ --cov pytest_testdox --cov-report=xml
@pytest tests/ --cov pytest_testdox --cov-report=xml --junitxml=junit.xml -o junit_family=legacy

check: ## Run static code checks
@mypy .
Expand Down

0 comments on commit df7d092

Please sign in to comment.