Skip to content

Commit 04f5780

Browse files
committed
Go back to using anchor for codecov
1 parent e76503b commit 04f5780

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

.github/actions/upload-codecov/action.yml

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

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
- name: Run unit and doc tests with coverage report
3636
run: uv run pytest -W error tests/unit tests/doc --cov=src --cov-report=xml
3737

38-
- uses: ./.github/actions/upload-codecov
38+
- &upload-codecov
39+
name: Upload results to Codecov
40+
uses: codecov/codecov-action@v4
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
3943

4044
tests-default-install:
4145
name: Run (most) tests with default install
@@ -58,7 +62,7 @@ jobs:
5862
--ignore tests/doc/test_aggregation.py \
5963
--cov=src --cov-report=xml
6064
61-
- uses: ./.github/actions/upload-codecov
65+
- *upload-codecov
6266

6367
tests-float64:
6468
name: Run tests on float64 dtype
@@ -79,7 +83,7 @@ jobs:
7983
env:
8084
PYTEST_TORCH_DTYPE: float64
8185

82-
- uses: ./.github/actions/upload-codecov
86+
- *upload-codecov
8387

8488
build-doc:
8589
name: Build doc

0 commit comments

Comments
 (0)