Skip to content

Commit 2002440

Browse files
committed
Add codecov test analytics
1 parent 26c755c commit 2002440

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ jobs:
4242
fail_ci_if_error: true
4343
token: ${{ secrets.CODECOV_TOKEN }} # required
4444
verbose: true
45+
- name: Upload test results to Codecov
46+
if: ${{ !cancelled() }}
47+
uses: codecov/test-results-action@v1
48+
with:
49+
name: ${{ matrix.python }} - ${{ matrix.install_extras }}
50+
token: ${{ secrets.CODECOV_TOKEN }}
51+
4552

4653
release:
4754
name: Publish to PyPi

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ build = [
8686

8787
[tool.pytest.ini_options]
8888
minversion = "4.6"
89-
addopts = "-ra --verbose --cov=filter_functions --cov-report=xml"
89+
addopts = "-ra --verbose --cov=filter_functions --cov-report=xml --junitxml=junit.xml -o junit_family=legacy"
9090
testpaths = [
9191
"tests"
9292
]

0 commit comments

Comments
 (0)