diff --git a/.coveragerc b/.coveragerc index 09b865804..17a064779 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,10 +1,14 @@ [run] +branch = True +source = dvc omit = *__main__.py [report] exclude_lines = if __name__ == .__main__.: + if typing.TYPE_CHECKING: + if TYPE_CHECKING: pass raise NotImplementedError # pragma: no cover diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c662a4c3e..c334bf4ae 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -44,13 +44,14 @@ jobs: python-version: ${{ matrix.pyv }} - name: install run: | - pip install ".[all,tests]" + pip install wheel + pip install -e ".[all,tests]" - name: setup git run: | git config --global user.email "dvctester@example.com" git config --global user.name "DVC Tester" - name: run tests - run: python -m tests -ra --cov-report=xml + run: python -m tests -ra --cov-report=xml --cov-report=term - name: upload coverage report uses: codecov/codecov-action@v1.0.13 with: