From d7ce38fc1009b494a0d685cc9cdd13f90da5d117 Mon Sep 17 00:00:00 2001 From: Peter Kroon Date: Mon, 29 Jan 2024 16:14:15 +0100 Subject: [PATCH] Fight with more CI tests --- .github/workflows/deploy.yml | 2 +- .github/workflows/run_tests.yml | 6 +++++- pyproject.toml | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0d6d5e995..6dea77172 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -52,7 +52,7 @@ jobs: - name: Run pytest with codecoverage run: | - coverage run --source=vermouth $(which pytest) -vv vermouth --hypothesis-show-statistics + coverage run $(which pytest) -vv --hypothesis-show-statistics coverage report --omit='*/bin/pytest' - if: ${{ matrix.WITH_CODECOV }} diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 1ebf193c2..72e8c9db4 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -53,7 +53,11 @@ jobs: pip install -r requirements-tests.txt - name: Run pytest with codecoverage - run: pytest vermouth --cov=vermouth --cov-report=xml --hypothesis-show-statistics + run: | + coverage run $(which pytest) -vv --hypothesis-show-statistics + coverage report + coverage xml + - if: ${{ matrix.WITH_CODECOV }} name: Upload coverage codecov uses: codecov/codecov-action@v3 diff --git a/pyproject.toml b/pyproject.toml index 22331bbfa..b2a592a45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,5 +12,5 @@ python_files = "test_*.py" [tool.coverage.run] branch = true -omit = ["vermouth/tests/*", "vermouth/redistributed/*"] - +omit = ["vermouth/tests/*", "vermouth/redistributed/*", '*/bin/pytest'] +source_pkgs = ["vermouth"]