CI: fix code coverage collection.

This has been broken since commit d71e19e2 (2020-07-22).
This commit is contained in:
whitequark 2020-10-15 18:09:04 +00:00
parent 9746138e55
commit 80194e1a7e
3 changed files with 2 additions and 3 deletions

View file

@ -4,7 +4,6 @@ include =
nmigen/* nmigen/*
omit = omit =
nmigen/test/* nmigen/test/*
*/__init__.py
[report] [report]
exclude_lines = exclude_lines =

View file

@ -33,7 +33,7 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
python -m unittest discover python -m coverage run -m unittest
codecov codecov
document: document:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -8,7 +8,7 @@ except ImportError:
# No importlib_metadata. This shouldn't normally happen, but some people prefer not installing # No importlib_metadata. This shouldn't normally happen, but some people prefer not installing
# packages via pip at all, instead using PYTHONPATH directly or copying the package files into # packages via pip at all, instead using PYTHONPATH directly or copying the package files into
# `lib/pythonX.Y/site-packages`. Although not a recommended way, we still try to support it. # `lib/pythonX.Y/site-packages`. Although not a recommended way, we still try to support it.
__version__ = "unknown" __version__ = "unknown" # :nocov:
from .hdl import * from .hdl import *