Fix coveralls integration
This commit is contained in:
parent
6b83017de9
commit
d7ed8bd530
24
.github/workflows/python.yml
vendored
24
.github/workflows/python.yml
vendored
@ -3,10 +3,11 @@ name: Python package
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.5, 3.7, 3.8]
|
python-version: [3.5, 3.7, 3.8]
|
||||||
|
|
||||||
@ -27,4 +28,23 @@ jobs:
|
|||||||
- name: Test with unittest
|
- name: Test with unittest
|
||||||
run: |
|
run: |
|
||||||
coverage run --source=stcgal setup.py test
|
coverage run --source=stcgal setup.py test
|
||||||
coveralls
|
- name: Coveralls
|
||||||
|
run: |
|
||||||
|
coveralls
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
|
||||||
|
COVERALLS_PARALLEL: true
|
||||||
|
|
||||||
|
coveralls:
|
||||||
|
name: Finish Coveralls
|
||||||
|
needs: test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: python:3-slim
|
||||||
|
steps:
|
||||||
|
- name: Finished
|
||||||
|
run: |
|
||||||
|
pip3 install --upgrade coveralls
|
||||||
|
coveralls --finish
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user