Skip to content

Commit a2794e0

Browse files
codexByron
authored andcommitted
Isolate dependency tests from GitPython pytest options
Running pytest below gitdb or smmap still discovers GitPython's root configuration. Its coverage addopts target the git package, which is not the package under test and caused the new dependency matrix jobs to fail. Clear inherited addopts for those jobs so each imported project runs its own test suite without GitPython-specific coverage arguments.
1 parent 29b584d commit a2794e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Test
3737
run: |
3838
if test "${{ matrix.project }}" = gitdb; then
39-
GITDB_TEST_GIT_REPO_BASE="$(git rev-parse --git-common-dir)" pytest -v gitdb/gitdb/test
39+
GITDB_TEST_GIT_REPO_BASE="$(git rev-parse --git-common-dir)" pytest -o addopts= -v gitdb/gitdb/test
4040
else
41-
pytest -v smmap/smmap/test
41+
pytest -o addopts= -v smmap/smmap/test
4242
fi

0 commit comments

Comments
 (0)