This repository was archived by the owner on Dec 2, 2025. It is now read-only.
Merge branch 'main' into mscroggs/doc #713
Workflow file for this run
This file contains hidden or 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: 🧪 | |
| 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"] | |
| feature-flags: ['--features "strict"', '--features "serde,strict"'] | |
| steps: | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| - uses: actions/checkout@v4 | |
| - name: Install LAPACK, OpenBLAS, SCOTCH | |
| run: | |
| sudo apt-get install -y libopenblas-dev liblapack-dev | |
| - name: Run unit tests | |
| run: cargo test --no-default-features ${{ matrix.feature-flags }} | |
| - name: Run unit tests in release mode | |
| run: cargo test --release --no-default-features ${{ matrix.feature-flags }} | |
| - name: Run tests | |
| run: cargo test --examples --release --no-default-features ${{ matrix.feature-flags }} | |
| run-tests-rust-mpi: | |
| name: Run Rust tests with MPI | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust-version: ["stable"] | |
| mpi: ['openmpi'] | |
| feature-flags: ['--features "strict,mpi"', '--features "serde,strict,mpi,scotch,coupe"'] | |
| steps: | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| - name: Set up MPI | |
| uses: mpi4py/setup-mpi@v1 | |
| with: | |
| mpi: ${{ matrix.mpi }} | |
| - name: Install cargo-mpirun and cargo-templated-examples | |
| run: cargo install cargo-mpirun cargo-templated-examples | |
| - uses: actions/checkout@v4 | |
| - name: Install LAPACK, OpenBLAS, SCOTCH | |
| run: | |
| sudo apt-get install -y libopenblas-dev liblapack-dev libscotch-dev | |
| - name: Run unit tests | |
| run: cargo test --no-default-features ${{ matrix.feature-flags }} | |
| - name: Run unit tests in release mode | |
| run: cargo test --release --no-default-features ${{ matrix.feature-flags }} | |
| - name: Run tests | |
| run: cargo test --examples --release --no-default-features ${{ matrix.feature-flags }} | |
| - name: Run examples | |
| run: cargo templated-examples NPROCESSES 2,4 | |
| 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 }} | |
| - name: Install cargo-upgrades | |
| run: cargo install cargo-upgrades | |
| - uses: actions/checkout@v4 | |
| - name: Check that dependencies are up to date | |
| run: | |
| cargo upgrades |