From ed186c85939705785bac20d58d3f137e5199311b Mon Sep 17 00:00:00 2001 From: Marco Sulla Date: Thu, 6 Jun 2024 21:58:44 +0200 Subject: [PATCH] support coverage for old py versions --- .coveragerc | 3 +++ .coveragerc_py | 0 .github/workflows/build_primary_wheels.yml | 2 +- pyproject.toml | 3 --- pyproject_py.toml | 2 -- 5 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 .coveragerc create mode 100644 .coveragerc_py delete mode 100644 pyproject_py.toml diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..8ee5b1b --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = + _frozendict_py.py diff --git a/.coveragerc_py b/.coveragerc_py new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/build_primary_wheels.yml b/.github/workflows/build_primary_wheels.yml index 77b5a31..54d3164 100644 --- a/.github/workflows/build_primary_wheels.yml +++ b/.github/workflows/build_primary_wheels.yml @@ -64,7 +64,7 @@ jobs: run: pip install dist/* - name: Test with pytest - run: pytest --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100 --cov-config=pyproject_py.toml + run: pytest --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100 --cov-config=.coveragerc_py - uses: actions/upload-artifact@v3 with: diff --git a/pyproject.toml b/pyproject.toml index 824291e..4dde8b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,2 @@ [tool.cibuildwheel] skip=["cp311-*", "cp312-*", "pp*"] - -[tool.coverage.run] -omit = ["_frozendict_py.py"] diff --git a/pyproject_py.toml b/pyproject_py.toml deleted file mode 100644 index 4dde8b4..0000000 --- a/pyproject_py.toml +++ /dev/null @@ -1,2 +0,0 @@ -[tool.cibuildwheel] -skip=["cp311-*", "cp312-*", "pp*"]