-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update CI workflow #10
Changes from 10 commits
36713ee
05c5027
ab3f84e
583cd87
2f0c580
0c73cb4
f5bac2b
935da7c
ce96887
dbfb7c7
eb24dda
9a38f6f
69622f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,11 @@ jobs: | |
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- run: pip install black==22.8.0 | ||
- run: pip install black==24.10.0 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
@@ -32,7 +32,7 @@ jobs: | |
clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
|
@@ -49,19 +49,16 @@ jobs: | |
rust: [stable] | ||
python-version: | ||
[ | ||
"3.7", | ||
"3.8", | ||
"3.9", | ||
"3.10", | ||
"3.11-dev", | ||
"pypy-3.7", | ||
"pypy-3.8", | ||
"3.11", | ||
"3.12", | ||
"pypy-3.9", | ||
] | ||
platform: | ||
[ | ||
{ | ||
os: "macOS-latest", | ||
os: "macos-latest", | ||
python-architecture: "x64", | ||
rust-target: "x86_64-apple-darwin", | ||
}, | ||
|
@@ -83,15 +80,11 @@ jobs: | |
] | ||
exclude: | ||
# PyPy doesn't release 32-bit Windows builds any more | ||
- python-version: pypy-3.7 | ||
platform: { os: "windows-latest", python-architecture: "x86" } | ||
- python-version: pypy-3.8 | ||
platform: { os: "windows-latest", python-architecture: "x86" } | ||
- python-version: pypy-3.9 | ||
platform: { os: "windows-latest", python-architecture: "x86" } | ||
include: | ||
# Test minimal supported Rust version | ||
- rust: 1.63.0 | ||
- rust: 1.70.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question on the MSRV bump. In PyO3 we support ranges of optional dependencies and have a helper script to downgrade them for the MSRV job to compatible versions. I'm unsure what the best option is here. Keeping the MSRV down is useful for linux distributions putting these packages in their package managers, e.g. PyO3/pyo3#3113 We last did an MSRV bump with PyO3 0.22 to 1.63, which is the current version supported by Debian stable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basing the MSRV on Debian stable and aligning it with PyO3's requirements, rather than targeting the latest version required by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This now seems to be the last issue with CI, other than some warnings I'd like to address on another pass (some of the Rust toolchain installation actions are very outdated). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I can perhaps try to port that script tomorrow 👍 |
||
python-version: "3.10" | ||
platform: | ||
{ | ||
|
@@ -114,10 +107,10 @@ jobs: | |
extra_features: "nightly" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: ${{ matrix.platform.python-architecture }} | ||
|
@@ -160,7 +153,7 @@ jobs: | |
needs: [fmt] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can probably update the coverage job to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noted, I think it would be best to align with PyO3's practices. I'd like to take another pass at CI once we get the first release of |
||
|
@@ -174,10 +167,10 @@ jobs: | |
args: --all-features | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | ||
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | ||
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off" | ||
- uses: actions-rs/[email protected] | ||
id: coverage | ||
- uses: codecov/codecov-action@v1 | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
file: ${{ steps.coverage.outputs.report }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macos-latest
runners are now arm: