Skip to content

Commit 1cc4b55

Browse files
Abel Milashclaude
andcommitted
Fix coverage source path to src/PowerPlatform so ADO displays source correctly
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0a78231 commit 1cc4b55

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

.azdo/ci-pr.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ extends:
5757
flake8 . --count --exit-zero --show-source --statistics
5858
displayName: 'Lint with flake8'
5959
60-
- script: |
61-
pytest --junitxml=test-results.xml --cov=PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
62-
displayName: 'Test with pytest'
63-
64-
- script: |
65-
git fetch origin main
66-
diff-cover coverage.xml --compare-branch=origin/main --fail-under=90
67-
displayName: 'Diff coverage (90% for new changes)'
68-
6960
- script: |
7061
python -m build
7162
displayName: 'Build package'
@@ -74,6 +65,15 @@ extends:
7465
python -m pip install dist/*.whl
7566
displayName: 'Install wheel'
7667
68+
- script: |
69+
pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
70+
displayName: 'Test with pytest'
71+
72+
- script: |
73+
git fetch origin main
74+
diff-cover coverage.xml --compare-branch=origin/main --fail-under=90
75+
displayName: 'Diff coverage (90% for new changes)'
76+
7777
- task: PublishTestResults@2
7878
condition: succeededOrFailed()
7979
inputs:

.github/workflows/python-package.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ jobs:
4141
# exit-zero treats all errors as warnings, matching Agents-for-python approach
4242
flake8 . --count --exit-zero --show-source --statistics
4343
44-
- name: Test with pytest
45-
run: |
46-
pytest --junitxml=test-results.xml --cov=PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
47-
48-
- name: Diff coverage (90% for new changes)
49-
run: |
50-
git fetch origin ${{ github.base_ref }}
51-
diff-cover coverage.xml --compare-branch=origin/${{ github.base_ref }} --fail-under=90
52-
5344
- name: Build package
5445
run: |
5546
python -m build
@@ -58,6 +49,15 @@ jobs:
5849
run: |
5950
python -m pip install dist/*.whl
6051
52+
- name: Test with pytest
53+
run: |
54+
pytest --junitxml=test-results.xml --cov=src/PowerPlatform --cov-report=xml --cov-report=term-missing --cov-fail-under=90
55+
56+
- name: Diff coverage (90% for new changes)
57+
run: |
58+
git fetch origin ${{ github.base_ref }}
59+
diff-cover coverage.xml --compare-branch=origin/${{ github.base_ref }} --fail-under=90
60+
6161
- name: Upload test results
6262
if: always()
6363
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)