-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump codecov/codecov-action from 4 to 5 (#4718)
* Bump codecov/codecov-action from 4 to 5 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v4...v5) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * format ci yml * fix "file" -> "files" deprecation --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Hewitt <[email protected]>
- Loading branch information
1 parent
5585240
commit 11b9086
Showing
1 changed file
with
81 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- run: python -m pip install --upgrade pip && pip install nox | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
|
@@ -41,11 +41,10 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- name: resolve MSRV | ||
id: resolve-msrv | ||
run: | ||
echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT | ||
run: echo MSRV=`python -c 'import tomllib; print(tomllib.load(open("Cargo.toml", "rb"))["package"]["rust-version"])'` >> $GITHUB_OUTPUT | ||
|
||
semver-checks: | ||
if: github.ref != 'refs/heads/main' | ||
|
@@ -55,7 +54,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
|
||
check-msrv: | ||
|
@@ -69,7 +68,7 @@ jobs: | |
components: rust-src | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -91,43 +90,44 @@ jobs: | |
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} | ||
matrix: | ||
rust: [stable] | ||
platform: [ | ||
{ | ||
os: "macos-latest", | ||
python-architecture: "arm64", | ||
rust-target: "aarch64-apple-darwin", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "x86_64-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "powerpc64le-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "s390x-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "wasm32-wasi", | ||
}, | ||
{ | ||
os: "windows-latest", | ||
python-architecture: "x64", | ||
rust-target: "x86_64-pc-windows-msvc", | ||
}, | ||
{ | ||
os: "windows-latest", | ||
python-architecture: "x86", | ||
rust-target: "i686-pc-windows-msvc", | ||
}, | ||
] | ||
platform: | ||
[ | ||
{ | ||
os: "macos-latest", | ||
python-architecture: "arm64", | ||
rust-target: "aarch64-apple-darwin", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "x86_64-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "powerpc64le-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "s390x-unknown-linux-gnu", | ||
}, | ||
{ | ||
os: "ubuntu-latest", | ||
python-architecture: "x64", | ||
rust-target: "wasm32-wasi", | ||
}, | ||
{ | ||
os: "windows-latest", | ||
python-architecture: "x64", | ||
rust-target: "x86_64-pc-windows-msvc", | ||
}, | ||
{ | ||
os: "windows-latest", | ||
python-architecture: "x86", | ||
rust-target: "i686-pc-windows-msvc", | ||
}, | ||
] | ||
include: | ||
# Run beta clippy as a way to detect any incoming lints which may affect downstream users | ||
- rust: beta | ||
|
@@ -148,7 +148,7 @@ jobs: | |
components: clippy,rust-src | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
architecture: ${{ matrix.platform.python-architecture }} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
|
@@ -177,15 +177,14 @@ jobs: | |
matrix: | ||
rust: [stable] | ||
python-version: ["3.12"] | ||
platform: | ||
[ | ||
platform: [ | ||
{ | ||
os: "macos-latest", # first available arm macos runner | ||
os: "macos-latest", # first available arm macos runner | ||
python-architecture: "arm64", | ||
rust-target: "aarch64-apple-darwin", | ||
}, | ||
{ | ||
os: "macos-13", # last available x86_64 macos runner | ||
os: "macos-13", # last available x86_64 macos runner | ||
python-architecture: "x64", | ||
rust-target: "x86_64-apple-darwin", | ||
}, | ||
|
@@ -234,18 +233,19 @@ jobs: | |
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }} | ||
matrix: | ||
rust: [stable] | ||
python-version: [ | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
"3.13", | ||
"pypy3.9", | ||
"pypy3.10", | ||
"graalpy24.0", | ||
] | ||
python-version: | ||
[ | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11", | ||
"3.12", | ||
"3.13", | ||
"pypy3.9", | ||
"pypy3.10", | ||
"graalpy24.0", | ||
] | ||
platform: | ||
[ | ||
{ | ||
|
@@ -389,7 +389,7 @@ jobs: | |
with: | ||
# FIXME valgrind detects an issue with Python 3.12.5, needs investigation | ||
# whether it's a PyO3 issue or upstream CPython. | ||
python-version: '3.12.4' | ||
python-version: "3.12.4" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -410,7 +410,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -432,7 +432,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -442,7 +442,7 @@ jobs: | |
- run: cargo rustdoc --lib --no-default-features --features full -Zunstable-options --config "build.rustdocflags=[\"--cfg\", \"docsrs\"]" | ||
|
||
coverage: | ||
if : ${{ github.event_name != 'merge_group' }} | ||
if: ${{ github.event_name != 'merge_group' }} | ||
needs: [fmt] | ||
name: coverage ${{ matrix.os }} | ||
strategy: | ||
|
@@ -453,7 +453,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -464,9 +464,9 @@ jobs: | |
uses: taiki-e/install-action@cargo-llvm-cov | ||
- run: python -m pip install --upgrade pip && pip install nox | ||
- run: nox -s coverage | ||
- uses: codecov/codecov-action@v4 | ||
- uses: codecov/codecov-action@v5 | ||
with: | ||
file: coverage.json | ||
files: coverage.json | ||
name: ${{ matrix.os }} | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
|
@@ -552,11 +552,11 @@ jobs: | |
|
||
test-free-threaded: | ||
needs: [fmt] | ||
name: Free threaded tests - ${{ matrix.runner }} | ||
runs-on: ${{ matrix.runner }} | ||
name: Free threaded tests - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
runner: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
@@ -568,7 +568,7 @@ jobs: | |
# TODO: replace with actions/setup-python when there is support | ||
- uses: quansight-labs/[email protected] | ||
with: | ||
python-version: '3.13t' | ||
python-version: "3.13t" | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- run: python3 -m sysconfig | ||
|
@@ -582,10 +582,10 @@ jobs: | |
- name: Generate coverage report | ||
run: nox -s generate-coverage-report | ||
- name: Upload coverage report | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
file: coverage.json | ||
name: test-free-threaded | ||
files: coverage.json | ||
name: ${{ matrix.os }}-test-free-threaded | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
test-version-limits: | ||
|
@@ -596,7 +596,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -620,7 +620,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
|
@@ -659,7 +659,7 @@ jobs: | |
flags: "-i python3.12 --features abi3 --features generate-import-lib" | ||
manylinux: off | ||
# macos x86_64 -> aarch64 | ||
- os: "macos-13" # last x86_64 macos runners | ||
- os: "macos-13" # last x86_64 macos runners | ||
target: "aarch64-apple-darwin" | ||
# macos aarch64 -> x86_64 | ||
- os: "macos-latest" | ||
|
@@ -668,11 +668,10 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | ||
examples/maturin-starter | ||
workspaces: examples/maturin-starter | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
key: ${{ matrix.target }} | ||
- name: Setup cross-compiler | ||
|
@@ -692,11 +691,10 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: "3.12" | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | ||
examples/maturin-starter | ||
workspaces: examples/maturin-starter | ||
save-if: ${{ github.event_name != 'merge_group' }} | ||
- uses: actions/cache/restore@v4 | ||
with: | ||
|