zombie-einstein tests #141
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: tests | |
run-name: ${{ github.actor }} tests | |
on: [pull_request] | |
jobs: | |
rust_tests: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
container: rust:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo test | |
rust_examples: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
container: rust:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: cargo run --example basic_sim 200 100 | |
python_tests: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip install hatch | |
- run: hatch run dev:test | |
python_examples: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip install hatch | |
- run: hatch run dev:examples |