Skip to content

Commit

Permalink
Add CI coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Apr 11, 2024
1 parent 533e9e3 commit 634ee8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
run: make dev-install
- name: Run tests
run: make test
- name: Report
uses: 5monkeys/cobertura-action@master
with:
path: coverage.xml
minimum_coverage: 90
skip_covered: false
fail_below_threshold: true

check:
runs-on: ubuntu-20.04
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ MANIFEST
/.hypothesis
/.coverage
/.coverage.*
/coverage.xml

# user makefile config
/Makefile.conf
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ docs-%:

test:
$(PYTHON) -m pytest \
--cov-report html --cov-report term \
--cov-report html --cov-report xml:coverage.xml --cov-report term \
--cov yosys_mau \
-n auto -q $(O)

Expand All @@ -71,4 +71,4 @@ dev-install:
ci: formatting lint typecheck test docs-html

clean: docs-clean
rm -rf .coverage .pytest_cache .mypy_cache .ruff_cache htmlcov
rm -rf .coverage .pytest_cache .mypy_cache .ruff_cache htmlcov coverage.xml

0 comments on commit 634ee8e

Please sign in to comment.