Skip to content

Commit bafdfbb

Browse files
Abel Milashclaude
andcommitted
Set PYTHONPATH=src so coverage tracks src/ not site-packages after wheel install
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9c467b5 commit bafdfbb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.azdo/ci-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extends:
6666
displayName: 'Install wheel'
6767
6868
- script: |
69-
pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
69+
PYTHONPATH=src pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
7070
displayName: 'Test with pytest'
7171
7272
- script: |

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Test with pytest
5353
run: |
54-
pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
54+
PYTHONPATH=src pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
5555
5656
- name: Diff coverage (90% for new changes)
5757
run: |

0 commit comments

Comments
 (0)