File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments