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

View File

@@ -1,5 +1,6 @@
[![Documentation Status](https://readthedocs.org/projects/peakrdl-regblock/badge/?version=latest)](http://peakrdl-regblock.readthedocs.io) [![Documentation Status](https://readthedocs.org/projects/peakrdl-regblock/badge/?version=latest)](http://peakrdl-regblock.readthedocs.io)
[![build](https://github.com/SystemRDL/PeakRDL-regblock/workflows/build/badge.svg)](https://github.com/SystemRDL/PeakRDL-regblock/actions?query=workflow%3Abuild+branch%3Amain) [![build](https://github.com/SystemRDL/PeakRDL-regblock/workflows/build/badge.svg)](https://github.com/SystemRDL/PeakRDL-regblock/actions?query=workflow%3Abuild+branch%3Amain)
[![Coverage Status](https://coveralls.io/repos/github/SystemRDL/PeakRDL-regblock/badge.svg?branch=main)](https://coveralls.io/github/SystemRDL/PeakRDL-regblock?branch=main)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/peakrdl-regblock.svg)](https://pypi.org/project/peakrdl-regblock) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/peakrdl-regblock.svg)](https://pypi.org/project/peakrdl-regblock)
# PeakRDL-regblock # PeakRDL-regblock

View File

@@ -7,4 +7,4 @@ jinja2-simple-tags
pylint pylint
mypy mypy
pytest-cov pytest-cov
coverage coveralls>=3.0.0