Skip to content

Commit dc00db4

Browse files
authored
use codecov action
This eliminates the need for a secret token.
1 parent 99e930c commit dc00db4

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ jobs:
3131
3232
- name: Run tests and collect coverage
3333
run: |
34-
coverage run --source=tests,cpp_linter_hooks -m pytest
35-
coverage report -m
36-
coverage html
37-
- name: Upload coverage reports to Codecov
38-
run: |
39-
# Replace `linux` below with the appropriate OS
40-
# Options are `alpine`, `linux`, `macos`, `windows`
41-
curl -Os https://uploader.codecov.io/latest/linux/codecov
42-
chmod +x codecov
43-
./codecov -t ${CODECOV_TOKEN}
34+
coverage run --source=tests,cpp_linter_hooks -m pytest -vv
35+
coverage report
36+
coverage xml
37+
- uses: codecov/codecov-action@v3
38+
with:
39+
files: ./coverage.xml
40+
fail_ci_if_error: true # optional (default = false)
41+
verbose: true # optional (default = false)
4442
- name: Test hooks
4543
run: |
4644
pip install pre-commit

0 commit comments

Comments
 (0)