Skip to content

Commit 3cbd6c6

Browse files
committed
Only run check for all feature flag combinations, not test
1 parent 3122f19 commit 3cbd6c6

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ jobs:
2626
- name: "clippy --all"
2727
run: cargo clippy --all --all-features --tests -- -D warnings
2828

29-
- name: "cargo check"
30-
run: cargo check --all --all-features
31-
3229
- run: cargo install cargo-all-features
3330

34-
- name: "cargo test all features"
35-
run: cargo test-all-features
31+
- name: Check all combinations of features can build
32+
run: cargo check-all-features --target wasm32-unknown-unknown
33+
34+
- name: "cargo test"
35+
run: |
36+
cargo test --all
37+
cargo test --all --all-features

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ futures = "0.3.31"
1616
jpeg = { package = "jpeg-decoder", version = "0.3.0", default-features = false }
1717
num_enum = "0.7.3"
1818
object_store = { version = "0.12", optional = true }
19-
# In the future we could make this feature-flagged, but for now we depend on
20-
# object_store which uses reqwest.
2119
reqwest = { version = "0.12", default-features = false, optional = true }
2220
thiserror = "1"
2321
tokio = { version = "1.43.0", optional = true }

src/cog.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ impl TIFF {
5656
}
5757
}
5858

59-
#[cfg(feature = "object_store")]
6059
#[cfg(test)]
6160
mod test {
6261
use std::io::BufReader;

0 commit comments

Comments
 (0)