Skip to content

Commit b9a2fec

Browse files
committed
codecov
1 parent 514ac60 commit b9a2fec

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,26 @@ jobs:
3434
pip install torch==${{ matrix.pytorch-version }}
3535
pip install numpy networkx matplotlib
3636
pip install -r requirements_tests.txt
37+
3738
- name: Install package
3839
run: |
3940
python setup.py install sdist bdist_wheel
4041
twine check dist/*
42+
4143
- name: Test with pytest
4244
run: |
4345
pip install pytest coverage
4446
coverage run -m pytest tests/ -vv
45-
coverage report -m
47+
coverage report -m
48+
coverage xml
49+
50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v1
52+
if: always()
53+
continue-on-error: true
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
file: coverage.xml
57+
flags: cpu,pytest,${{ runner.os }}
58+
name: Test-coverage
59+
fail_ci_if_error: false

0 commit comments

Comments
 (0)