mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-06 11:52:55 +00:00
ci(coverage): use Codecov and pytest-cov
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user