-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #373 from Ogeon/alloc_and_any_features_in_tests
Add an "alloc" feature and make tests work with any feature combination
- Loading branch information
Showing
54 changed files
with
1,526 additions
and
1,299 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 |
---|---|---|
|
@@ -24,6 +24,7 @@ jobs: | |
- uses: dtolnay/[email protected] | ||
with: | ||
components: clippy | ||
- uses: taiki-e/install-action@cargo-hack | ||
- name: Minimal check | ||
run: cargo clippy -v -p palette --no-default-features --features std | ||
- name: find-crate check | ||
|
@@ -33,9 +34,7 @@ jobs: | |
- name: Test all features | ||
run: cargo test -v -p palette --all-features | ||
- name: Test each feature | ||
shell: bash | ||
working-directory: palette | ||
run: bash ../scripts/test_features.sh | ||
run: cargo hack test --tests --feature-powerset --ignore-private --skip default,find-crate --optional-deps libm --depth 2 | ||
integration_tests: | ||
name: integration tests | ||
strategy: | ||
|
@@ -63,8 +62,13 @@ jobs: | |
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
- uses: taiki-e/install-action@cargo-hack | ||
- name: Check all features | ||
run: cargo clippy -v -p palette --all-features | ||
- name: Check each feature with libm | ||
run: cargo hack clippy --each-feature --ignore-private --features libm --skip default,find-crate --ignore-unknown-features | ||
- name: Check each feature with std | ||
run: cargo hack clippy --each-feature --ignore-private --features std --skip default,find-crate --optional-deps libm --ignore-unknown-features | ||
no_std: | ||
name: "Test #[no_std]" | ||
runs-on: ubuntu-latest | ||
|
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![cfg(feature = "approx")] | ||
|
||
use crate::{ | ||
blend::{Blend, BlendWith, Compose}, | ||
LinSrgb, LinSrgba, | ||
|
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
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
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
Oops, something went wrong.