File tree 1 file changed +6
-14
lines changed
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 23
23
- name : Install dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
+ pip install coverage-badge
26
27
pip install scikit-learn
27
28
pip install scipy
28
29
pip install numpy
42
43
pytest -x --cov=pygrank --cov-report=xml tests/test_autorefs.py tests/test_core.py tests/test_measures.py tests/test_filters.py tests/test_autotune.py tests/test_filter_optimization.py tests/test_gnn.py tests/test_postprocessing.py tests/test_benchmarks.py tests/test_fairness.py tests/test_preprocessor.py
43
44
- name : Generate coverage badge
44
45
run : coverage-badge -o coverage.svg -f
45
- - name : Commit coverage badge
46
- if : ${{ matrix.python-version == '3.11' }}
47
- run : |
48
- git config --global user.name 'github-actions'
49
- git config --global user.email '[email protected] '
50
- git add coverage.svg
51
- if [ -n "$(git status --porcelain)" ]; then
52
- git commit -m 'Updated coverage badge'
53
- git push
54
- else
55
- echo "No changes in coverage to commit"
56
- fi
57
- env :
58
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
+ - name : Upload coverage badge
47
+ uses : actions/upload-artifact@v4
48
+ with :
49
+ name : coverage-badge
50
+ path : coverage.svg
You can’t perform that action at this time.
0 commit comments