Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,10 @@ jobs:
if: ${{ endsWith(inputs.python-version, '-dev') || (steps.ffi-changes.outputs.changed == 'true' && inputs.rust == 'stable' && !startsWith(inputs.python-version, 'graalpy') && !(inputs.python-version == 'pypy3.9' && contains(inputs.os, 'windows'))) }}
run: nox -s ffi-check

- if: ${{ github.event_name != 'merge_group' }}
name: Install cargo-llvm-cov
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- if: ${{ github.event_name != 'merge_group' }}
name: Prepare coverage environment
- name: Prepare coverage environment
run: |
cargo llvm-cov clean --workspace --profraw-only
nox -s set-coverage-env
Expand All @@ -148,8 +146,7 @@ jobs:
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/target

- if: ${{ github.event_name != 'merge_group' }}
name: Generate coverage report
- name: Generate coverage report
# needs investigation why llvm-cov fails on windows-11-arm
continue-on-error: ${{ inputs.os == 'windows-11-arm' }}
run: cargo llvm-cov
Expand All @@ -160,8 +157,7 @@ jobs:
--package=pyo3-ffi
report --codecov --output-path coverage.json

- if: ${{ github.event_name != 'merge_group' }}
name: Upload coverage report
- name: Upload coverage report
uses: codecov/codecov-action@v5
# needs investigation why llvm-cov fails on windows-11-arm
continue-on-error: ${{ inputs.os == 'windows-11-arm' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage-pr-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: ./.github/actions/fetch-merge-base
with:
base_ref: "refs/heads/${{ github.event.pull_request.base.ref }}"
head_ref: "refs/pull/${{ github.event.pull_request.number }}/merge"
head_ref: "refs/pull/${{ github.event.pull_request.number }}/head"
- name: Set PR base on codecov
run: |
pip install codecov-cli
Expand Down
Loading