Skip to content

Allow the user to pick read-only or read-write locking #118

Allow the user to pick read-only or read-write locking

Allow the user to pick read-only or read-write locking #118

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- 1.74
- stable
- nightly
steps:
- uses: actions/checkout@v5
- name: Setup toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Setup sccache-cache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Run tests
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
run: |
pip install numpy
cargo test --all-features
miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup toolchain
run: |
rustup update nightly && rustup default nightly
rustup component add miri
- name: Run tests under miri
run: cargo miri test --all-features