From d07be54adc28233c725f6bf214b6b9fa5a8d2148 Mon Sep 17 00:00:00 2001 From: Jonathan Chico Date: Thu, 11 Apr 2024 08:34:59 +0200 Subject: [PATCH] Simplifying the coverage configuration to ensure that one gets coverage with the src layer. --- .coveragerc | 3 --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 2 +- pyproject.toml | 1 + 4 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index e3a227d..0000000 --- a/.coveragerc +++ /dev/null @@ -1,3 +0,0 @@ -[run] -include = */src/* -source=src/aiida_lammps diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4a90fae..3c2482e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -79,7 +79,7 @@ jobs: - name: Run pytest run: | - tox -e ${{ matrix.python-version }}-aiida_lammps -- tests/ --cov=./src/aiida_lammps --cov-append --cov-report=xml --cov-report=term-missing + tox -e ${{ matrix.python-version }}-aiida_lammps -- tests/ --cov=aiida_lammps --cov-append --cov-report=xml --cov-report=term-missing - name: Upload to Codecov if: matrix.python-version == 3.10 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc06264..65ae0c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,7 @@ jobs: - name: Run pytest run: | - tox -e ${{ matrix.python-version }}-aiida_lammps -- tests/ --cov=./src/aiida_lammps --cov-append --cov-report=xml --cov-report=term-missing + tox -e ${{ matrix.python-version }}-aiida_lammps -- tests/ --cov=aiida_lammps --cov-append --cov-report=xml --cov-report=term-missing - name: Upload to Codecov if: matrix.python-version == 3.10 diff --git a/pyproject.toml b/pyproject.toml index f85a425..82910a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ exclude = ["docs/", "tests/"] # reporting which lines of your plugin are covered by tests source = ["src"] + [tool.isort] skip = ["venv"] # Force imports to be sorted by module, independent of import type