This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 mscroggs/implementation
- Loading branch information
Showing
3 changed files
with
80 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 🧪 | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
|
||
jobs: | ||
run-tests-rust: | ||
name: Run Rust tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust-version: ["stable"] | ||
# mpi: ['mpich', 'openmpi'] | ||
feature-flags: [''] | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust-version }} | ||
components: rustfmt | ||
#- name: Set up MPI | ||
# uses: mpi4py/setup-mpi@v1 | ||
# with: | ||
# mpi: ${{ matrix.mpi }} | ||
#- name: Install cargo-mpirun | ||
# run: cargo install cargo-mpirun | ||
- uses: actions/checkout@v3 | ||
#- name: Install LAPACK & OpenBLAS | ||
# run: | ||
# sudo apt-get install libopenblas-dev liblapack-dev | ||
|
||
- name: Run unit tests | ||
run: cargo test --lib ${{ matrix.feature-flags }} | ||
- name: Run unit tests in release mode | ||
run: cargo test --lib --release ${{ matrix.feature-flags }} | ||
- name: Run tests | ||
run: cargo test --examples --release ${{ matrix.feature-flags }} |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: ✨ | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
|
||
jobs: | ||
style-checks: | ||
name: Rust style checks | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt,clippy | ||
#- name: Set up MPI | ||
# uses: mpi4py/setup-mpi@v1 | ||
# with: | ||
# mpi: mpich | ||
- uses: actions/checkout@v3 | ||
#- name: Install LAPACK & OpenBLAS | ||
# run: | ||
# sudo apt-get install libopenblas-dev liblapack-dev | ||
|
||
- name: Style checks | ||
run: | | ||
cargo fmt -- --check | ||
cargo clippy -- -D warnings | ||
cargo clippy --tests -- -D warnings | ||
cargo clippy --examples -- -D warnings |
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