Add coveralls

This commit is contained in:
Alex Mykyta
2023-03-13 21:46:10 -07:00
parent c7b7352746
commit 8b9dfe5ebe
3 changed files with 31 additions and 3 deletions

View File

@@ -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: