Skip to content

Commit

Permalink
trying to make pytest-cov read pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Sulla committed Jun 6, 2024
1 parent f7d74d4 commit 50eef26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_primary_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
CIBW_SKIP: "cp311-* cp312-* pp*"
CIBW_TEST_REQUIRES: pytest pytest-cov
CIBW_TEST_COMMAND: >
python -X faulthandler {package}/test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler -s {package} --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100 --cov-config={package}/pyproject.toml
cd {package}/ &&
python -X faulthandler test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100
- uses: actions/upload-artifact@v3
with:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build_secondary_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
CIBW_SKIP: "cp311-* cp312-* pp*"
CIBW_TEST_REQUIRES: pytest pytest-cov
CIBW_TEST_COMMAND: >
python -X faulthandler {package}/test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler -s {package} --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100 --cov-config={package}/pyproject.toml
cd {package}/ &&
python -X faulthandler test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100
- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -72,8 +73,9 @@ jobs:
CIBW_SKIP: "*-musllinux_*"
CIBW_TEST_REQUIRES: pytest pytest-cov
CIBW_TEST_COMMAND: >
python -X faulthandler {package}/test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler -s {package} --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100 --cov-config={package}/pyproject.toml
cd {package}/ &&
python -X faulthandler test/debug.py &&
python -X faulthandler -m pytest -p no:faulthandler --cov=frozendict --cov-report=term-missing --cov-branch --cov-fail-under=100
with:
package-dir: dist/frozendict.tar.gz

Expand Down

0 comments on commit 50eef26

Please sign in to comment.