Bump actions/checkout from 4 to 6 #20
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: Lint and Format with Ruff | |
| on: | |
| push: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| lint-and-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build Docker image | |
| run: docker build --target hatch -t myapp:hatch . | |
| - name: Check formatting with Ruff | |
| run: docker run --rm -e HATCH_ENV=lint -v "${{ github.workspace }}:/app" myapp:hatch format-check | |
| - name: Run Ruff linter | |
| run: docker run --rm -e HATCH_ENV=lint -v "${{ github.workspace }}:/app" myapp:hatch check |