feat: api port #6
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: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| pytest: | |
| name: pytest (flake CPython) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| with: | |
| extra-conf: | | |
| experimental-features = nix-command flakes | |
| - name: Magic Nix cache | |
| uses: DeterminateSystems/magic-nix-cache-action@main | |
| - name: Build testEnv | |
| run: nix build .#testEnv --print-build-logs | |
| - name: Run tests | |
| run: ./result/bin/python -m pytest tests/ -v |