Do not use panic!s and assert!s for erroring #88
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: "CI" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
# Prepare | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: rm -rf /home/runner/.cargo # This needs to be done to avoid clashes with Nix | |
# Check and build | |
- run: ./scripts/unzip_models.sh | |
- run: nix flake check | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo fmt -- --check" | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo clippy" | |
- run: nix develop --command bash -c "export RUSTFLAGS='-D warnings' && cargo test" | |
- run: nix build |