@@ -4,44 +4,45 @@ on: pull_request
44
55jobs :
66 lint :
7- strategy :
8- matrix :
9- cmd :
10- - black
11- - ruff
12- - mypy
137 runs-on : ubuntu-latest
148 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
9+ - uses : actions/checkout@v6
2010 with :
21- python-version : " 3.11"
22- cache : " poetry"
11+ persist-credentials : false
12+ fetch-depth : 0
13+ - id : setup-uv
14+ uses : astral-sh/setup-uv@v7
15+ with :
16+ enable-cache : true
17+ cache-suffix : 3.14
18+ version : " latest"
19+ python-version : 3.14
2320 - name : Install deps
24- run : poetry install --all-extras
21+ run : uv sync --frozen --all-extras
2522 - name : Run lint check
26- run : poetry run pre-commit run -a ${{ matrix.cmd }}
23+ run : uv run pre-commit run -a
2724 pytest :
2825 strategy :
2926 matrix :
30- py_version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
31- runs-on : " ubuntu-latest"
27+ py_version : [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
28+ pydantic_ver : [ "<2", ">=2.5,<3" ]
29+ os : [ ubuntu-latest, windows-latest, macos-latest ]
30+ runs-on : " ${{ matrix.os }}"
3231 steps :
33- - uses : actions/checkout@v2
34- - name : Set up Python
35- uses : actions/setup-python@v2
32+ - uses : actions/checkout@v6
33+ with :
34+ persist-credentials : false
35+ fetch-depth : 0
36+ - id : setup-uv
37+ uses : astral-sh/setup-uv@v7
3638 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
39+ enable-cache : true
40+ cache-suffix : ${{ matrix.py_version }}
41+ version : " latest"
42+ python-version : ${{ matrix.py_version }}
4243 - name : Install deps
43- run : poetry install
44- env :
45- POETRY_VIRTUALENVS_CREATE : false
44+ run : uv sync --frozen --all-extras
45+ - name : Setup pydantic version
46+ run : uv pip install "pydantic ${{ matrix.pydantic_ver }}"
4647 - name : Run pytest check
47- run : poetry run pytest -vv -n auto --cov="taskiq_pipelines" .
48+ run : uv run pytest -vv -n auto .
0 commit comments