Allow the user to pick read-only or read-write locking #118
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: 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 |