Skip to content

Commit 1a7f2c9

Browse files
refactor: simplify workflow and update to codecov-action
- Remove separate codecov CLI installation steps - Switch from test-results-action to codecov-action@v5 - Add report_type: test-results parameter
1 parent 56e0160 commit 1a7f2c9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ jobs:
4949
pip install maturin
5050
pip install -r tests/requirements.txt
5151
maturin develop
52-
- name: Install codecov cli (Unix)
53-
if: runner.os != 'Windows'
54-
run: |
55-
. venv/bin/activate
56-
pip install --no-cache-dir git+https://github.com/codecov/codecov-cli.git@joseph/test-results-staging
57-
- name: Install codecov cli (Windows)
58-
if: runner.os == 'Windows'
59-
run: |
60-
venv\Scripts\activate
61-
pip install --no-cache-dir git+https://github.com/codecov/codecov-cli.git@joseph/test-results-staging
6252
- name: Run tests (Unix)
6353
if: runner.os != 'Windows'
6454
run: |
@@ -72,18 +62,20 @@ jobs:
7262
7363
- name: Upload results to codecov
7464
if: ${{ !cancelled() }}
75-
uses: codecov/test-results-action@v1
65+
uses: codecov/codecov-action@v5
7666
with:
7767
token: ${{ secrets.CODECOV_ORG_TOKEN }}
7868
url: ${{ secrets.CODECOV_URL }}
7969
file: unit.junit.xml
8070
disable_search: true
71+
report_type: test-results
8172

82-
- name: Upload results to codecov
73+
- name: Upload results to codecov (Staging)
8374
if: ${{ !cancelled() }}
84-
uses: codecov/test-results-action@v1
75+
uses: codecov/codecov-action@v5
8576
with:
8677
token: ${{ secrets.CODECOV_ORG_TOKEN_STAGING }}
8778
url: ${{ secrets.CODECOV_STAGING_API_URL }}
8879
file: unit.junit.xml
8980
disable_search: true
81+
report_type: test-results

0 commit comments

Comments
 (0)