⬆ Bump actions/checkout from 4 to 6 (#16) #45
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] | |
| jobs: | |
| linting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up python "3.13" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: ruff format | |
| run: uv run ruff format . --check | |
| - name: ruff check | |
| run: uv run ruff check . | |
| test: | |
| needs: linting | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ "ubuntu-latest" ] | |
| python-version: [ "3.13" ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Install dependencies | |
| run: uv sync --all-extras | |
| - name: Install library | |
| run: uv pip install -e . | |
| - name: Pytest ${{ matrix.python-version }} | |
| run: uv run pytest |