Skip to content

Commit 3730f4f

Browse files
ryanduguidmrbean-bremen
authored andcommitted
Fix coverage collection and source paths for src layout
1 parent 7d0355a commit 3730f4f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎.coveragerc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[run]
22
branch = True
3+
4+
[paths]
5+
source =
6+
src/pytest_order
7+
.tox/*/lib/python*/site-packages/pytest_order
8+
.tox/*/Lib/site-packages/pytest_order

‎.github/workflows/pythontests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Run tests
4646
run: |
4747
TOX_PYTHON_VERSION=$(if [[ ${{ matrix.python-version }} == pypy* ]]; then echo ${{ matrix.python-version }} | tr -d .-; else echo py${{ matrix.python-version }} | tr -d .-; fi)
48-
COV_CMD=$(if [ ${{ matrix.python-version }} == 3.13 ]; then echo "--cov=./pytest_order/ --cov-report=xml"; else echo ; fi) tox -e $(tox -l | grep -E "^${TOX_PYTHON_VERSION}-" | paste -sd "," -)
48+
COV_CMD=$(if [ ${{ matrix.python-version }} == 3.13 ]; then echo "--cov=pytest_order --cov-report=xml"; else echo ; fi) tox -e $(tox -l | grep -E "^${TOX_PYTHON_VERSION}-" | paste -sd "," -)
4949
- name: Upload coverage to Codecov
5050
uses: codecov/codecov-action@v7
5151
if: ${{ success() && matrix.python-version == 3.13 }}

0 commit comments

Comments
 (0)