Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI coverage #10

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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