Id and null space #828
Workflow file for this run
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
name: 🧪 Test | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run-tests: | |
name: Run tests (Rust) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust-version: ["stable"] | |
mpi: ["openmpi"] | |
steps: | |
- name: Set up Rust | |
uses: actions-rs/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 | |
with: | |
submodules: 'true' | |
- name: Install Clang | |
run: sudo apt-get install -y libclang-dev | |
- name: Install Blas | |
run: sudo apt-get install -y libopenblas-dev | |
- name: Install CMake | |
run: sudo apt-get install -y cmake | |
- name: Style checks | |
run: | | |
cargo fmt -- --check | |
cargo clippy -- -D warnings | |
cargo clippy --tests -- -D warnings | |
cargo clippy --examples -- -D warnings | |
- name: Run unit tests (debug) | |
run: cargo test --lib --features "mpi,strict" | |
- name: Run tests (release) | |
run: cargo test --examples --release --features "mpi,strict" | |
- name: Run examples | |
run: | | |
python3 find_examples.py --features "strict" | |
chmod +x examples.sh | |
./examples.sh | |
- name: Check benchmarks compile | |
run: cargo bench --no-run | |
- name: Build docs | |
run: cargo doc --features "mpi,strict" | |
check-dependencies: | |
name: Check dependencies | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust-version: ["stable"] | |
steps: | |
- name: Set up Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
components: rustfmt | |
- name: Install cargo-upgrades | |
run: cargo install cargo-upgrades | |
- uses: actions/checkout@v3 | |
- name: Check that dependencies are up to date | |
run: | |
cargo upgrades |