introduce pre-commit #68
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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: [main, dev] | |
| jobs: | |
| static-analysis: | |
| name: Perform static analysis | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: v0.40.2 | |
| cache: false | |
| environments: fmt | |
| activate-environment: true | |
| - name: Run formatter and linter | |
| run: pixi run fmt | |
| docs: | |
| name: Generate documentation | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: v0.40.2 | |
| cache: false | |
| environments: docs | |
| activate-environment: true | |
| - name: Build docs | |
| run: pixi run build-docs |