Skip to content

Commit

Permalink
Merge pull request matplotlib#28203 from QuLogic/auto-backport-of-pr-…
Browse files Browse the repository at this point in the history
…28164-on-v3.9.x

Backport PR matplotlib#28164 on branch v3.9.x (CI: Ensure code coverage is always uploaded)
  • Loading branch information
ksunden authored May 10, 2024
2 parents ef1a2db + 1b526c3 commit 4db5ac9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,4 @@ jobs:
run: |
xvfb-run pytest-3.${{ matrix.python-minor-version }} -rfEsXR -n auto \
--maxfail=50 --timeout=300 --durations=25 \
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
--cov-report=term --cov=lib --log-level=DEBUG --color=yes
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ jobs:
--cov-report=xml --cov=lib --log-level=DEBUG --color=yes
- name: Filter C coverage
if: ${{ !cancelled() && github.event_name != 'schedule' }}
run: |
if [[ "${{ runner.os }}" != 'macOS' ]]; then
lcov --rc lcov_branch_coverage=1 --capture --directory . \
Expand All @@ -331,7 +332,7 @@ jobs:
-instr-profile default.profdata > info.lcov
fi
- name: Upload code coverage
if: ${{ github.event_name != 'schedule' }}
if: ${{ !cancelled() && github.event_name != 'schedule' }}
uses: codecov/codecov-action@v4
with:
name: "${{ matrix.python-version }} ${{ matrix.os }} ${{ matrix.name-suffix }}"
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,13 @@ stages:
;;
esac
displayName: 'Filter C coverage'
condition: succeededOrFailed()
- bash: |
bash <(curl -s https://codecov.io/bash) \
-n "$PYTHON_VERSION $AGENT_OS" \
-f 'coverage.xml' -f 'extensions.xml'
displayName: 'Upload to codecov.io'
condition: succeededOrFailed()
- task: PublishTestResults@2
inputs:
Expand Down

0 comments on commit 4db5ac9

Please sign in to comment.