Update #120
This file contains 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: test_rs | |
on: | |
pull_request: | |
branches: ["master"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
cargo_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Run Rust tests | |
run: | | |
cargo test | |
cargo_miri: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
rustup update | |
# Use nightly for miri | |
rustup toolchain install --allow-downgrade nightly | |
rustup component add --toolchain nightly miri | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Run Rust tests with miri | |
run: | | |
cargo +nightly miri test |