File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 36
36
run : |
37
37
python setup.py bdist_wheel
38
38
ls dist/*
39
- - name : Save wheel
39
+ - name : Upload wheels
40
40
uses : actions/upload-artifact@v4
41
41
with :
42
42
name : pecos_${{ matrix.python-version }}_${{ matrix.os }}.whl
87
87
pip install -r requirements.txt
88
88
python -m pip install -e .
89
89
- name : Run Tests
90
- run : |
90
+ run : |
91
91
coverage erase
92
92
coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=pecos --omit="*/tests/*" -m pytest --doctest-modules --doctest-glob="*.rst" pecos
93
93
coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=pecos --omit="*/tests/*" --append -m pytest --doctest-glob="*.rst" documentation
96
96
- name : Save coverage
97
97
uses : actions/upload-artifact@v4
98
98
with :
99
- name : coverage
99
+ name : . coverage.${{ matrix.python-version }}.${{ matrix.os }}
100
100
path : .coverage.${{ matrix.python-version }}.${{ matrix.os }}
101
101
102
102
combine_reports :
@@ -117,7 +117,9 @@ jobs:
117
117
- name : Download coverage artifacts from test matrix
118
118
uses : actions/download-artifact@v4
119
119
with :
120
- name : coverage
120
+ pattern : .coverage.*.ubuntu-latest # coverage from other OS cause problems
121
+ - name : Setup coverage and combine reports
122
+ run : coverage combine .coverage.*.ubuntu-latest
121
123
- name : Create coverage report
122
124
run : |
123
125
echo "[paths]" > .coveragerc
@@ -142,9 +144,7 @@ jobs:
142
144
with :
143
145
name : coverage-html
144
146
path : htmlcov
145
-
146
147
- name : Push to coveralls
147
- run : |
148
- coveralls --service=github
148
+ run : coveralls --service=github --rcfile=.coveragerc
149
149
env :
150
150
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments