File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,26 @@ jobs:
34
34
pip install torch==${{ matrix.pytorch-version }}
35
35
pip install numpy networkx matplotlib
36
36
pip install -r requirements_tests.txt
37
+
37
38
- name : Install package
38
39
run : |
39
40
python setup.py install sdist bdist_wheel
40
41
twine check dist/*
42
+
41
43
- name : Test with pytest
42
44
run : |
43
45
pip install pytest coverage
44
46
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
You can’t perform that action at this time.
0 commit comments