Repository navigation
Fix Omega Ruby/Alpha Sapphire sprite key in generation-vi sprites (#1… #198
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: Nix Environment | |
| on: | |
| pull_request: | |
| paths: &paths | |
| - "**.py" | |
| - "**.toml" | |
| - "**.lock" | |
| - default.nix | |
| - Makefile | |
| - .github/workflows/nix-environment.yml | |
| push: | |
| branches: | |
| - master | |
| paths: *paths | |
| jobs: | |
| nix-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Pull cries submodule | |
| run: git submodule update --init data/v2/cries | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| - name: Evaluate default.nix | |
| run: nix-instantiate default.nix | |
| - name: Test Nix shellHook runs automatically | |
| run: | | |
| nix-shell --run " | |
| echo 'ShellHook completed successfully' && | |
| uv --version && | |
| test -d .venv && echo 'Virtual environment exists' || (echo 'Virtual environment not found' && exit 1) | |
| " | |
| - name: Start pokeapi in Nix environment | |
| run: | | |
| nix-shell --run " | |
| make install-base && | |
| make setup && | |
| make build-db | |
| " | |
| - name: Test pokeapi serves correctly | |
| run: | | |
| nix-shell --run " | |
| nohup make serve & | |
| sleep 3 && | |
| curl -Ss http://localhost:8000/api/v2/pokemon/1/ | grep -q 'bulbasaur' | |
| " |