Skip to content

Added test to compare MPI and single node FMM computation. #2962

Added test to compare MPI and single node FMM computation.

Added test to compare MPI and single node FMM computation. #2962

Workflow file for this run

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: ['openmpi']
feature-flags: ['--features "strict"']
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
# run: cargo install cargo-mpirun
- uses: actions/checkout@v4
- name: Install LAPACK, OpenBLAS
run:
sudo apt-get install -y libopenblas-dev liblapack-dev
- name: Run unit tests
run: cargo test ${{ matrix.feature-flags }}
- name: Run unit tests in release mode
run: cargo test --release ${{ matrix.feature-flags }}
- name: Run tests
run: cargo test --examples --release ${{ matrix.feature-flags }}
- name: Run examples
run: |
python3 find_examples.py
chmod +x examples.sh
./examples.sh
# run-tests-python:
# name: Run Python tests
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.12"]
# mpi: ['openmpi']
# steps:
# - name: Set up Rust
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# toolchain: nightly
# - name: Set up MPI
# uses: mpi4py/setup-mpi@v1
# with:
# mpi: ${{ matrix.mpi }}
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - uses: actions/checkout@v4
# - name: Install uv
# run: pip install uv "maturin>=1.7"
# - name: Make virtual environment
# run: |
# uv venv .venv
# uv pip install pip pytest
# - name: Install python package
# run: |
# source .venv/bin/activate
# rustup run nightly maturin develop --release
# - name: Run Python tests
# run: |
# source .venv/bin/activate
# python -m pytest python/test
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