-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-modular-section-assignment
- Loading branch information
Showing
20 changed files
with
1,146 additions
and
154 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 |
---|---|---|
|
@@ -25,11 +25,20 @@ jobs: | |
run: | ||
./ci/pull_request_checks.sh | ||
|
||
rust: | ||
name: Test, Format and Clippy | ||
runs-on: [ubuntu-latest] | ||
checks: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
check: [format, clippy, test] | ||
features: [all, default] | ||
exclude: | ||
# Remove the "format+all" combination, since it is the same as "format+default" | ||
- check: format | ||
features: all | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
|
@@ -38,20 +47,28 @@ jobs: | |
with: | ||
components: clippy, rustfmt | ||
|
||
- name: Build artefact caching | ||
- name: Rust cache | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Format | ||
# format | ||
- name: Cargo fmt (check) | ||
if: ${{ matrix.check == 'format' }} | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Clippy | ||
# clippy | ||
- name: Clippy with all features | ||
if: ${{ matrix.check == 'clippy' && matrix.features == 'all' }} | ||
run: cargo clippy --release --all-targets --all-features --tests --all -- -D warnings | ||
|
||
- name: Clippy with default features | ||
if: ${{ matrix.check == 'clippy' && matrix.features == 'default' }} | ||
run: cargo clippy --release --all-targets --tests --all -- -D warnings | ||
|
||
- name: Run tests | ||
# test | ||
- name: Tests with all features | ||
if: ${{ matrix.check == 'test' && matrix.features == 'all' }} | ||
run: cargo test --release --all --no-fail-fast --all-features | ||
|
||
- name: Run tests with default features | ||
- name: Tests with default features | ||
if: ${{ matrix.check == 'test' && matrix.features == 'default' }} | ||
run: cargo test --release --all --no-fail-fast |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
// license that can be found in the LICENSE file. | ||
|
||
pub mod noise; | ||
pub mod patches; | ||
pub mod spline; |
Oops, something went wrong.