ci(coverage): use Codecov and pytest-cov

This commit is contained in:
Rémi Alvergnat
2021-02-10 23:45:21 +01:00
parent 62f0c0ec5d
commit f743298863
4 changed files with 11 additions and 19 deletions
+8 -13
View File
@@ -53,17 +53,12 @@ jobs:
- name: Test
run: |
pip install coveralls
coverage run --source=guessit setup.py test
pytest --cov=guessit
env:
REBULK_REGEX_ENABLED: ${{ matrix.regex }}
- name: Coveralls
run: |
coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Codecov
uses: codecov/codecov-action@v1
commitlint:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
@@ -78,7 +73,7 @@ jobs:
build-setuptools:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
needs: [ci]
needs: [ ci ]
runs-on: ubuntu-latest
@@ -115,7 +110,7 @@ jobs:
build-bin-linux:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
needs: [ci]
needs: [ ci ]
runs-on: ubuntu-latest
@@ -156,7 +151,7 @@ jobs:
build-bin-windows:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
needs: [ci]
needs: [ ci ]
runs-on: windows-latest
@@ -196,7 +191,7 @@ jobs:
build-bin-macos:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
needs: [ci]
needs: [ ci ]
runs-on: macos-latest
@@ -236,7 +231,7 @@ jobs:
release:
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
needs: [commitlint, build-setuptools, build-bin-linux, build-bin-windows, build-bin-macos]
needs: [ commitlint, build-setuptools, build-bin-linux, build-bin-windows, build-bin-macos ]
runs-on: ubuntu-latest