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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
|
- 'dev/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
release:
|
release:
|
||||||
@@ -51,7 +53,32 @@ jobs:
|
|||||||
cd tests
|
cd tests
|
||||||
export SKIP_SYNTH_TESTS=1
|
export SKIP_SYNTH_TESTS=1
|
||||||
export STUB_SIMULATOR=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:
|
lint:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[](http://peakrdl-regblock.readthedocs.io)
|
[](http://peakrdl-regblock.readthedocs.io)
|
||||||
[](https://github.com/SystemRDL/PeakRDL-regblock/actions?query=workflow%3Abuild+branch%3Amain)
|
[](https://github.com/SystemRDL/PeakRDL-regblock/actions?query=workflow%3Abuild+branch%3Amain)
|
||||||
|
[](https://coveralls.io/github/SystemRDL/PeakRDL-regblock?branch=main)
|
||||||
[](https://pypi.org/project/peakrdl-regblock)
|
[](https://pypi.org/project/peakrdl-regblock)
|
||||||
|
|
||||||
# PeakRDL-regblock
|
# PeakRDL-regblock
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ jinja2-simple-tags
|
|||||||
pylint
|
pylint
|
||||||
mypy
|
mypy
|
||||||
pytest-cov
|
pytest-cov
|
||||||
coverage
|
coveralls>=3.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user