Skip to content

Commit 9e08903

Browse files
authored
ci: upload test results using the recommended codecov action (#1787)
1 parent 0c21814 commit 9e08903

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,24 @@ jobs:
8080
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
8181
- name: Upload test results to Codecov
8282
if: ${{ !cancelled() }}
83-
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
83+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
8484
with:
8585
directory: ./reports/
86+
fail_ci_if_error: true
8687
flags: ${{ matrix.python-version }}
88+
report_type: test_results
8789
token: ${{ secrets.CODECOV_TOKEN }}
8890
verbose: true
8991
- name: Upload test coverage to Codecov (only with latest supported version)
9092
if: startsWith(matrix.python-version, '3.14')
9193
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
9294
with:
93-
token: ${{ secrets.CODECOV_TOKEN }}
95+
fail_ci_if_error: true
9496
# Run validation generates the coverage file
9597
files: ./coverage.xml
98+
report_type: coverage
99+
token: ${{ secrets.CODECOV_TOKEN }}
100+
verbose: true
96101
notifications:
97102
name: Regression notifications
98103
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)