Add coveralls
This commit is contained in:
31
.github/workflows/build.yml
vendored
31
.github/workflows/build.yml
vendored
@@ -2,7 +2,9 @@ name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches:
|
||||
- main
|
||||
- 'dev/**'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
release:
|
||||
@@ -51,7 +53,32 @@ jobs:
|
||||
cd tests
|
||||
export SKIP_SYNTH_TESTS=1
|
||||
export STUB_SIMULATOR=1
|
||||
pytest
|
||||
pytest --cov=peakrdl_regblock
|
||||
|
||||
- name: Coveralls
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COVERALLS_PARALLEL: true
|
||||
run: |
|
||||
cd tests
|
||||
coveralls --service=github
|
||||
|
||||
finish_coveralls:
|
||||
needs: test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
|
||||
- name: Coveralls
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
COVERALLS_PARALLEL: true
|
||||
run: |
|
||||
python -m pip install -U coveralls>=3.0.0
|
||||
coveralls --service=github --finish
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
lint:
|
||||
|
||||
Reference in New Issue
Block a user