Skip to content

Commit

Permalink
update CI config (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs authored Nov 25, 2024
1 parent c39459e commit f3bd96a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Install maturin, CFFI
run: |
${{ matrix.platform.python }} -m pip install "maturin>=1.7"
${{ matrix.platform.python }} -m pip install "maturin>=1.7.2"
${{ matrix.platform.python }} -m pip install cffi
- name: Build wheel
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: 🧪

on:
push:
branches:
- "**"
branches: ["**"]
pull_request:
branches:
- main
branches: [main]
merge_group:

jobs:
Expand Down
27 changes: 11 additions & 16 deletions .github/workflows/run-weekly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
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
Expand All @@ -29,33 +32,26 @@ jobs:
sudo apt-get install -y libopenblas-dev liblapack-dev

- name: Build rust library
run: cargo build --features "strict"
run: cargo build --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"
- name: Build rust library in release mode
run: cargo build --release --features "strict"
- name: Build rust library in release mode with mpi
run: cargo build --release --features "strict,mpi"

run: cargo build --release --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"

- name: Run unit tests
run: cargo test --features "strict"
run: cargo test --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"
- name: Run unit tests in release mode
run: cargo test --release --features "strict"
- name: Run unit tests with mpi enabled
run: cargo test --features "mpi,strict"
- name: Run unit tests in release mode with mpi enabled
run: cargo test --release --features "mpi,strict"
run: cargo test --release --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"
- name: Run tests
run: cargo test --examples --release --features "mpi,strict"
run: cargo test --examples --release --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"
# - name: Test benchmarks build
# run: cargo bench --no-run --features "mpi,strict"
# run: cargo bench --no-run --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}"
- name: Run examples
run: |
python3 find_examples.py
chmod +x examples.sh
./examples.sh
- name: Build docs
run: cargo doc --features "mpi,strict" --no-deps
run: cargo doc --features "${{matrix.f_mpi}}${{matrix.f_strict}}${{matrix.f_serde}}" --no-deps

run-tests-python:
name: Run Python tests
Expand All @@ -74,7 +70,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: Install uv
run: pip install uv "maturin>=1.7"
run: pip install uv "maturin>=1.7.2"
- name: Make virtual environment
run: |
uv venv .venv
Expand All @@ -87,4 +83,3 @@ jobs:
run: |
source .venv/bin/activate
python -m pytest python/test
6 changes: 2 additions & 4 deletions .github/workflows/style-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: ✨

on:
push:
branches:
- "**"
branches: ["**"]
pull_request:
branches:
- main
branches: [main]
merge_group:

jobs:
Expand Down

0 comments on commit f3bd96a

Please sign in to comment.