Enable auto-rebuild in scikit-build-core at import time
#57
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: Format and Lint | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| format-and-lint: | |
| name: Format and Lint Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: "latest" | |
| cache: false # pixi is too large to cache (contains CUDA toolkit) | |
| - name: Check formatting | |
| run: | | |
| pixi run format | |
| if [ -n "$(git status --porcelain)" ]; then | |
| echo "❌ Files were not properly formatted. Run 'pixi run format' to fix." | |
| git diff | |
| exit 1 | |
| fi | |
| - name: Lint code | |
| run: pixi run lint | |