Validate #758
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: Validate | |
| on: | |
| pull_request: | |
| branches: [main] | |
| merge_group: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Minimal permissions for this workflow | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Setup Nix development environment | |
| uses: nicknovitski/nix-develop@v1 | |
| - name: Install Python dependencies | |
| run: uv sync --extra dev | |
| - name: Check formatting (ruff) | |
| run: | | |
| ruff format --check src/ tests/ | |
| ruff check src/ tests/ | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| - name: Build deepwork package | |
| run: nix build | |
| - name: Verify package output | |
| run: | | |
| ls -la result/bin/deepwork | |
| ./result/bin/deepwork --version |