From: whitequark Date: Thu, 15 Oct 2020 18:09:04 +0000 (+0000) Subject: CI: fix code coverage collection. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d02be9200df7d401c6a520d65d35109034a23849;p=nmigen.git CI: fix code coverage collection. This has been broken since commit d71e19e2 (2020-07-22). --- diff --git a/.coveragerc b/.coveragerc index 6435aa3..74367c2 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,7 +4,6 @@ include = nmigen/* omit = nmigen/test/* - */__init__.py [report] exclude_lines = diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1545d72..9bda4c5 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -33,7 +33,7 @@ jobs: - name: Run tests run: | 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 document: runs-on: ubuntu-latest diff --git a/nmigen/__init__.py b/nmigen/__init__.py index 93a3a9a..7f99c4a 100644 --- a/nmigen/__init__.py +++ b/nmigen/__init__.py @@ -8,7 +8,7 @@ except ImportError: # 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 # `lib/pythonX.Y/site-packages`. Although not a recommended way, we still try to support it. - __version__ = "unknown" + __version__ = "unknown" # :nocov: from .hdl import *