Repository navigation
chore: cleanup justfile - 4-space indentation only (#81) #303
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: "CI" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| Lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: wistia/parse-tool-versions@v1.0 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ env.PYTHON_TOOL_VERSION }} | |
| - name: Linting | |
| run: | | |
| pip install pre-commit | |
| pre-commit run --all-files | |
| Tests: | |
| needs: Lint | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: wistia/parse-tool-versions@v1.0 | |
| - uses: extractions/setup-just@v1 | |
| with: | |
| just-version: ${{ env.JUST_TOOL_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: ${{ env.UV_TOOL_VERSION }} | |
| activate-environment: true | |
| enable-cache: true | |
| - name: Install Python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| shell: bash | |
| run: uv sync | |
| - name: Pytest run | |
| run: just test -v |