diff --git a/.coveragerc b/.coveragerc index 398ff08..afba842 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,2 +1,8 @@ [run] branch = True + +[paths] +source = + src/pytest_order + .tox/*/lib/python*/site-packages/pytest_order + .tox/*/Lib/site-packages/pytest_order diff --git a/.github/workflows/pythontests.yml b/.github/workflows/pythontests.yml index 57e1ca1..c3d3a6c 100644 --- a/.github/workflows/pythontests.yml +++ b/.github/workflows/pythontests.yml @@ -45,7 +45,7 @@ jobs: - name: Run tests run: | TOX_PYTHON_VERSION=$(if [[ ${{ matrix.python-version }} == pypy* ]]; then echo ${{ matrix.python-version }} | tr -d .-; else echo py${{ matrix.python-version }} | tr -d .-; fi) - 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 "," -) + 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 "," -) - name: Upload coverage to Codecov uses: codecov/codecov-action@v7 if: ${{ success() && matrix.python-version == 3.13 }}