From 80194e1a7ee7d9423a102a8f9f9bc36602d76a2c Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 15 Oct 2020 18:09:04 +0000 Subject: [PATCH] CI: fix code coverage collection. This has been broken since commit d71e19e2 (2020-07-22). --- .coveragerc | 1 - .github/workflows/main.yaml | 2 +- nmigen/__init__.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) 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 * -- 2.30.2