Skip to content

Commit b346b62

Browse files
committed
replace coveralls-python with coveralls github-action
1 parent dd1901e commit b346b62

3 files changed

Lines changed: 13 additions & 18 deletions

File tree

.github/conda-env/test-env.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ dependencies:
77
- pytest-cov
88
- pytest-timeout
99
- coverage
10-
- coveralls >= 3.3

.github/scripts/run-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ cd ${slycot_srcdir}
3434
echo " ${slycot_libdir}" >> .coveragerc
3535
coverage combine
3636
coverage report
37+
coverage xml
3738
echo "::endgroup::"

.github/workflows/slycot-build-and-test.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -287,13 +287,11 @@ jobs:
287287
env:
288288
JOBNAME: wheel ${{ matrix.packagekey }} ${{ matrix.blas_lib }}
289289
- name: report coverage
290-
env:
291-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
292-
COVERALLS_FLAG_NAME: wheel-${{ matrix.packagekey }}-${{matrix.blas_lib}}
293-
COVERALLS_PARALLEL: true
294-
working-directory: slycot-src
295-
# https://github.com/TheKevJames/coveralls-python/issues/252
296-
run: coveralls --service=github
290+
uses: coverallsapp/github-action@v2
291+
with:
292+
flag-name: wheel-${{ matrix.packagekey }}-${{matrix.blas_lib}}
293+
parallel: true
294+
file: slycot-src/coverage.xml
297295

298296
test-conda:
299297
name: Test conda ${{ matrix.packagekey }}, ${{matrix.blas_lib}} BLAS lib ${{ matrix.failok }}
@@ -363,14 +361,12 @@ jobs:
363361
run: JOBNAME="$JOBNAME" bash slycot-src/.github/scripts/run-tests.sh
364362
env:
365363
JOBNAME: conda ${{ matrix.packagekey }} ${{ matrix.blas_lib }}
366-
- name: Report coverage
367-
env:
368-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
369-
COVERALLS_FLAG_NAME: conda-${{ matrix.packagekey }}-${{matrix.blas_lib}}
370-
COVERALLS_PARALLEL: true
371-
working-directory: slycot-src
372-
# https://github.com/TheKevJames/coveralls-python/issues/252
373-
run: coveralls --service=github
364+
- name: report coverage
365+
uses: coverallsapp/github-action@v2
366+
with:
367+
flag-name: wheel-${{ matrix.packagekey }}-${{matrix.blas_lib}}
368+
parallel: true
369+
file: slycot-src/coverage.xml
374370

375371
coveralls-final:
376372
name: Finalize parallel coveralls
@@ -381,7 +377,6 @@ jobs:
381377
runs-on: ubuntu-latest
382378
steps:
383379
- name: Coveralls Finished
384-
uses: coverallsapp/github-action@master
380+
uses: coverallsapp/github-action@v2
385381
with:
386-
github-token: ${{ secrets.GITHUB_TOKEN }}
387382
parallel-finished: true

0 commit comments

Comments
 (0)