Skip to content

Commit 0730248

Browse files
committed
ci(pytest): Fix coverage due to pytest plugin change
Moving from conftest.py to pytest_plugin.py (which comes via a setuptools entry point) requires a workaround to prevent loss of coverage from real libtmux tests relying on our pytest plugin. See also: - https://pytest-cov.readthedocs.io/en/latest/plugins.html - pytest-dev/pytest#935 (comment)
1 parent 247962f commit 0730248

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ jobs:
6868
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
6969
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
7070
tmux -V
71-
poetry run py.test --cov=./ --cov-report=xml
71+
poetry run py.test --cov=./ --cov-append --cov-report=xml
72+
env:
73+
COV_CORE_SOURCE: .
74+
COV_CORE_CONFIG: .coveragerc
75+
COV_CORE_DATAFILE: .coverage.eager
7276
- uses: codecov/codecov-action@v2
7377
with:
7478
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)