[nlpo3-python]: Allow unreachable code during test #285
Workflow file for this run
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 main lib | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'Cargo.toml' | |
- 'tests/**' | |
- '.github/workflows/test-main-lib.yml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'tests/**' | |
- 'Cargo.toml' | |
- '.github/workflows/test-main-lib.yml' | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
bitness: [64] # 32, 64 | |
include: | |
- os: windows-latest | |
bitness: 32 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Rust toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Test | |
env: | |
RUSTFLAGS: "-A unreachable_code" | |
run: cargo test |