Skip to content

Commit 75bfb28

Browse files
authored
Update codecov action to v4 (#3675)
* Try to update codecov action to v4 * Switch PR coverage to branch
1 parent 26a64dc commit 75bfb28

File tree

3 files changed

+8
-55
lines changed

3 files changed

+8
-55
lines changed

.github/workflows/ci-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Run Tox
2626
run: |
2727
tox -e py -- -m "data or not data"
28-
- uses: codecov/codecov-action@v4.1.0
28+
- uses: codecov/codecov-action@v4
2929
if: matrix.os == 'ubuntu-latest'
3030
with:
3131
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/ci-pr-coverage.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/workflows/ci-pr.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@ jobs:
2626
run: |
2727
tox -e py
2828
mv coverage.xml coverage-${{ matrix.python }}.xml
29-
- name: Store coverage file
30-
uses: actions/upload-artifact@v4
29+
- uses: codecov/codecov-action@v4
3130
if: matrix.os == 'ubuntu-latest'
3231
with:
33-
name: coverage-${{ matrix.python }}
34-
path: coverage-${{ matrix.python }}.xml
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
file: coverage-${{ matrix.python }}.xml
34+
name: py${{ matrix.python }}-${{ matrix.os }}
35+
flags: unittests
36+
fail_ci_if_error: true
37+
verbose: true
3538
integration:
3639
runs-on: ${{ matrix.os }}
3740
strategy:
@@ -68,13 +71,6 @@ jobs:
6871
pip3 install -e .
6972
pip install --upgrade pip
7073
pip install --upgrade setuptools
71-
mkdir -p ./pr
72-
echo ${{ github.event.number }} > ./pr/NR
73-
- uses: actions/upload-artifact@v4
74-
with:
75-
name: pr
76-
path: pr/
77-
overwrite: true
7874
- uses: pypa/[email protected]
7975
with:
8076
ignore-vulns: |

0 commit comments

Comments
 (0)