Skip to content

Commit 873725a

Browse files
chore: add Codecov test analytics (#2290)
* chore: add Codecov test analytics * Update tox.ini
1 parent 1645812 commit 873725a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ jobs:
5959
tox --verbose --verbose -e
6060
"${{ matrix.python-version }}-unit" -vv
6161
62+
- name: Upload test results to Codecov
63+
if: ${{ !cancelled() }} # Run even if tests fail
64+
uses: codecov/test-results-action@v1
65+
with:
66+
token: ${{ secrets.CODECOV_TOKEN }}
67+
6268
- uses: codecov/codecov-action@v5
6369
with:
6470
fail_ci_if_error: false # optional (default = false)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ deps=
4242
integration: -r{toxinidir}/requirements/test-integration.txt
4343

4444
commands =
45-
unit: python -bb -m pytest -rxs -xv --cov=kombu --cov-report=xml --no-cov-on-fail --cov-report term {posargs}
45+
unit: python -bb -m pytest -rxs -xv --cov=kombu --cov-report=xml --no-cov-on-fail --cov-report term --junitxml=junit.xml -o junit_family=legacy {posargs}
4646
integration-py-amqp: pytest -xv -E py-amqp t/integration -n auto --reruns 2 --reruns-delay 1 {posargs}
4747
integration-redis: pytest -xv -E redis t/integration -n auto --reruns 2 --reruns-delay 1 {posargs}
4848
integration-mongodb: pytest -xv -E mongodb t/integration -n auto --reruns 2 --reruns-delay 1 {posargs}

0 commit comments

Comments
 (0)