|
6 | 6 | lint: |
7 | 7 | strategy: |
8 | 8 | matrix: |
9 | | - cmd: |
10 | | - - black |
11 | | - - ruff |
12 | | - - mypy |
| 9 | + cmd: [ "black", "ruff", "mypy" ] |
13 | 10 | runs-on: ubuntu-latest |
14 | 11 | steps: |
15 | | - - uses: actions/checkout@v2 |
16 | | - - name: Install poetry |
17 | | - run: pipx install poetry |
18 | | - - name: Set up Python |
19 | | - uses: actions/setup-python@v4 |
| 12 | + - uses: actions/checkout@v5 |
20 | 13 | with: |
21 | | - python-version: "3.11" |
22 | | - cache: "poetry" |
| 14 | + persist-credentials: false |
| 15 | + - id: setup-uv |
| 16 | + uses: astral-sh/setup-uv@v7 |
| 17 | + with: |
| 18 | + enable-cache: true |
| 19 | + cache-suffix: 3.11 |
| 20 | + version: "latest" |
| 21 | + python-version: 3.11 |
23 | 22 | - name: Install deps |
24 | | - run: poetry install --all-extras |
| 23 | + run: uv sync --all-extras |
25 | 24 | - name: Run lint check |
26 | | - run: poetry run pre-commit run -a ${{ matrix.cmd }} |
| 25 | + run: uv run pre-commit run -a ${{ matrix.cmd }} |
27 | 26 | pytest: |
28 | 27 | strategy: |
29 | 28 | matrix: |
30 | | - py_version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
31 | | - runs-on: "ubuntu-latest" |
| 29 | + py_version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ] |
| 30 | + pydantic_ver: [ "<2", ">=2.5,<3" ] |
| 31 | + os: [ ubuntu-latest, windows-latest, macos-latest ] |
| 32 | + runs-on: "${{ matrix.os }}" |
32 | 33 | steps: |
33 | | - - uses: actions/checkout@v2 |
34 | | - - name: Set up Python |
35 | | - uses: actions/setup-python@v2 |
| 34 | + - uses: actions/checkout@v5 |
| 35 | + with: |
| 36 | + persist-credentials: false |
| 37 | + - id: setup-uv |
| 38 | + uses: astral-sh/setup-uv@v7 |
36 | 39 | with: |
37 | | - python-version: "${{ matrix.py_version }}" |
38 | | - - name: Update pip |
39 | | - run: python -m pip install -U pip |
40 | | - - name: Install poetry |
41 | | - run: python -m pip install poetry |
| 40 | + enable-cache: true |
| 41 | + cache-suffix: ${{ matrix.py_version }} |
| 42 | + version: "latest" |
| 43 | + python-version: ${{ matrix.py_version }} |
42 | 44 | - name: Install deps |
43 | | - run: poetry install |
44 | | - env: |
45 | | - POETRY_VIRTUALENVS_CREATE: false |
| 45 | + run: uv sync --all-extras |
| 46 | + - name: Setup pydantic version |
| 47 | + run: uv pip install "pydantic ${{ matrix.pydantic_ver }}" |
46 | 48 | - name: Run pytest check |
47 | | - run: poetry run pytest -vv -n auto --cov="taskiq_pipelines" . |
| 49 | + run: uv run pytest -vv -n auto . |
0 commit comments