Skip to content

update weekly workflow #12

update weekly workflow

update weekly workflow #12

name: 🧪
on:
schedule:
- cron: "0 7 * * 1"
push:
branches: ["**"]
jobs:
run-tests-rust:
name: Run Rust tests
runs-on: ubuntu-latest
strategy:
matrix:
rust-version: ["stable", "beta", "nightly"]
mpi: [ 'mpich', 'openmpi']
f_mpi: ["", "mpi,"]
f_strict: ["", "strict,"]
f_serde: ["", "serde,"]
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 -y libopenblas-dev liblapack-dev
- name: Build rust library
run: cargo build --features "${{f_mpi}}${{f_strict}}${{f_serde}}"

Check failure on line 38 in .github/workflows/run-weekly-tests.yml

View workflow run for this annotation

GitHub Actions / 🧪

Invalid workflow file

The workflow is not valid. .github/workflows/run-weekly-tests.yml (Line: 38, Col: 14): Unrecognized named-value: 'f_mpi'. Located at position 1 within expression: f_mpi .github/workflows/run-weekly-tests.yml (Line: 40, Col: 14): Unrecognized named-value: 'f_mpi'. Located at position 1 within expression: f_mpi
- name: Build rust library in release mode
run: cargo build --release --features "${{f_mpi}}${{f_strict}}${{f_serde}}"
- name: Run unit tests
run: cargo test --features "${{f_mpi}}${{f_strict}}${{f_serde}}"
- name: Run unit tests in release mode
run: cargo test --release --features "${{f_mpi}}${{f_strict}}${{f_serde}}"
- name: Run tests
run: cargo test --examples --release --features "${{f_mpi}}${{f_strict}}${{f_serde}}"
- name: Test benchmarks build
run: cargo bench --no-run --features "${{f_mpi}}${{f_strict}}${{f_serde}}"
- name: Run examples
run: |
python3 find_examples.py
chmod +x examples.sh
./examples.sh
- name: Build docs
run: cargo doc --features "${{f_mpi}}${{f_strict}}${{f_serde}}" --no-deps