BUG Fix __check_ifile to accept Filename/SequenceSet paths (Rust) #14
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: Build Rust | |
| on: | |
| push: | |
| branches: [rust-migration] | |
| pull_request: | |
| branches: [rust-migration] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| - name: Build | |
| run: cargo build --workspace --all-targets | |
| - name: Unit tests | |
| run: cargo test --workspace | |
| # Parity smoke test: run the functional suite against the Rust binary. The external tools | |
| # (samtools/bwa/minimap2/prodigal/megahit) are provided by the pinned pixi environment so the | |
| # fixtures line up with the same tool versions we use locally. | |
| functional-parity: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| environments: default | |
| - name: Build Rust ngless | |
| run: cargo build --release | |
| - name: Run functional tests against the Rust binary | |
| run: pixi run --environment default bash -c 'NGLESS_BIN="$PWD/target/release/ngless" ./run-tests.sh' |