@@ -19,55 +19,52 @@ jobs:
1919 lint :
2020 strategy :
2121 matrix :
22- cmd :
23- - black
24- - ruff
25- - mypy
22+ cmd : ["black", "ruff", "mypy"]
2623 runs-on : ubuntu-latest
2724 steps :
2825 - uses : actions/checkout@v5
2926 with :
3027 persist-credentials : false
31- - name : Install poetry
32- run : pipx install poetry
33- - name : Set up Python
34- uses : actions/setup-python@v6
28+ - id : setup-uv
29+ uses : astral-sh/setup-uv@v7
3530 with :
36- python-version : " 3.11"
37- cache : " poetry"
31+ enable-cache : true
32+ cache-suffix : 3.11
33+ version : " latest"
34+ python-version : 3.11
3835 - name : Install deps
39- run : poetry install --all-extras
36+ run : uv sync --all-extras
4037 - name : Run lint check
41- run : poetry run pre-commit run -a ${{ matrix.cmd }}
38+ run : uv run pre-commit run -a ${{ matrix.cmd }}
4239 pytest :
4340 strategy :
4441 matrix :
45- py_version : ["3.9", "3. 10", "3.11", "3.12", "3.13"]
42+ py_version : ["3.10", "3.11", "3.12", "3.13"]
4643 pydantic_ver : ["<2", ">=2.5,<3"]
4744 os : [ubuntu-latest, windows-latest, macos-latest]
4845 runs-on : " ${{ matrix.os }}"
4946 steps :
5047 - uses : actions/checkout@v5
5148 with :
5249 persist-credentials : false
53- - name : Install poetry
54- run : pipx install poetry
55- - name : Set up Python
56- uses : actions/setup-python@v6
50+ - id : setup-uv
51+ uses : astral-sh/setup-uv@v7
5752 with :
58- python-version : " ${{ matrix.py_version }}"
59- cache : " poetry"
53+ enable-cache : true
54+ cache-suffix : ${{ matrix.py_version }}
55+ version : " latest"
56+ python-version : ${{ matrix.py_version }}
6057 - name : Install deps
61- run : poetry install --all-extras
58+ run : uv sync --all-extras
6259 - name : Setup pydantic version
63- run : poetry run pip install "pydantic ${{ matrix.pydantic_ver }}"
60+ run : uv pip install "pydantic ${{ matrix.pydantic_ver }}"
6461 - name : Run pytest check
65- run : poetry run pytest -vv -n auto --cov="taskiq" .
62+ run : uv run pytest -vv -n auto --cov="taskiq" .
6663 - name : Generate report
67- run : poetry run coverage xml
64+ run : uv run coverage xml
6865 - name : Upload coverage reports to Codecov with GitHub Action
6966 uses : codecov/codecov-action@v5
70- if : matrix.os == 'ubuntu-latest' && matrix.py_version == '3.9 '
67+ if : matrix.os == 'ubuntu-latest' && matrix.py_version == '3.10 '
7168 with :
7269 fail_ci_if_error : false
7370 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments