|
7 | 7 | branches: [main] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - test: |
| 10 | + lint: |
| 11 | + name: Lint |
11 | 12 | runs-on: ubuntu-latest |
12 | 13 | strategy: |
13 | 14 | fail-fast: false |
14 | 15 | matrix: |
15 | | - python-version: |
16 | | - - "3.12" |
| 16 | + python-version: ["3.12", "3.13"] |
17 | 17 |
|
18 | 18 | steps: |
19 | 19 | - uses: actions/checkout@v4 |
20 | 20 |
|
21 | | - - name: Install Poetry |
22 | | - run: pipx install poetry |
23 | | - |
24 | | - - name: Configure Poetry virtualenv |
25 | | - run: poetry config virtualenvs.in-project true |
26 | | - |
27 | | - - name: Set up Python ${{ matrix.python-version }} |
28 | | - uses: actions/setup-python@v5 |
| 21 | + - name: Install uv |
| 22 | + uses: astral-sh/setup-uv@v4 |
29 | 23 | with: |
30 | 24 | python-version: ${{ matrix.python-version }} |
31 | | - cache: poetry |
32 | | - |
33 | | - - run: poetry env use ${{ matrix.python-version }} |
34 | | - |
35 | | - - name: Install dependencies |
36 | | - run: poetry install --no-interaction |
| 25 | + version: latest |
37 | 26 |
|
38 | | - - name: Check Poetry config and lockfile |
39 | | - run: poetry run pre-commit run poetry-check --all-files |
| 27 | + - name: Check uv.lock |
| 28 | + run: uv run --frozen pre-commit run uv-lock-check --all-files |
40 | 29 |
|
41 | 30 | - name: Lint (ruff) |
42 | | - run: poetry run ruff check . --config pyproject.toml --output-format=github --no-fix |
| 31 | + run: uv run --frozen ruff check . --config pyproject.toml --output-format=github --no-fix |
43 | 32 |
|
44 | 33 | - name: Formatting (ruff) |
45 | | - run: poetry run pre-commit run ruff-format --all-files --show-diff-on-failure |
| 34 | + run: uv run --frozen pre-commit run ruff-format --all-files --show-diff-on-failure |
46 | 35 |
|
47 | 36 | - name: Typing (pyright) |
48 | | - run: poetry run pre-commit run pyright --all-files |
| 37 | + run: uv run --frozen pre-commit run pyright --all-files |
| 38 | + |
| 39 | + test: |
| 40 | + name: Test |
| 41 | + runs-on: ubuntu-latest |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + matrix: |
| 45 | + python-version: ["3.12", "3.13"] |
| 46 | + |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v4 |
| 49 | + |
| 50 | + - name: Install uv |
| 51 | + uses: astral-sh/setup-uv@v4 |
| 52 | + with: |
| 53 | + python-version: ${{ matrix.python-version }} |
| 54 | + version: latest |
49 | 55 |
|
50 | 56 | - name: Test |
51 | | - run: poetry run pytest tests |
| 57 | + run: uv run --frozen pytest tests |
0 commit comments