Skip to content

Commit 89515f7

Browse files
committed
Test minimal versions in CI
Add testing for `-Z minimal-versions` in CI. This does not add `-Zdirect-minimal-versions` since it fails to resolve: ``` error: failed to select a version for `flate2`. ... required by package `zip v1.1.0` ... which satisfies dependency `zip = "^1.0.0"` of package `python-pkginfo v0.6.1 (/home/konsti/projects/python-pkginfo-rs)` versions that meet the requirements `^1.0.28` are: 1.0.30, 1.0.29, 1.0.28 all possible versions conflict with previously selected packages. previously selected package `flate2 v1.0.20` ... which satisfies dependency `flate2 = "^1.0.20"` of package `python-pkginfo v0.6.1 (/home/konsti/projects/python-pkginfo-rs)` failed to select a version for `flate2` which could resolve this conflict ``` It also does not test with all features, since pulling in the deprecated formats pulls in filetime 0.1.0 which fails to compile.
1 parent b9b8386 commit 89515f7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
- run: cargo test
2828
- run: cargo test --all-features
2929

30+
test-direct-minimal-versions:
31+
name: Test Direct Minimal Versions
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: dtolnay/rust-toolchain@stable
36+
- uses: dtolnay/rust-toolchain@nightly
37+
- run: cargo +nightly update -Z minimal-versions
38+
- run: cargo +stable test
39+
3040
fmt:
3141
name: Rustfmt
3242
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)