1313 matrix :
1414 cmd :
1515 - black
16- - ruff
1716 - mypy
17+ - ruff
1818 runs-on : ubuntu-latest
1919 steps :
2020 - uses : actions/checkout@v4
@@ -23,40 +23,42 @@ jobs:
2323 - name : Set up Python
2424 uses : actions/setup-python@v4
2525 with :
26- python-version : " 3.11 "
26+ python-version : " 3.9 "
2727 cache : " poetry"
2828 - name : Install deps
2929 run : poetry install
3030 - name : Run lint check
3131 run : poetry run pre-commit run -a ${{ matrix.cmd }}
3232 pytest :
33+ permissions :
34+ checks : write
35+ pull-requests : write
36+ contents : write
3337 strategy :
3438 matrix :
3539 py_version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
36- runs-on : " ubuntu-latest"
40+ os : [ubuntu-latest, windows-latest]
41+ runs-on : " ${{ matrix.os }}"
3742 steps :
3843 - uses : actions/checkout@v4
3944 - name : Set up Valkey instance and Valkey cluster
4045 run : docker compose up -d
46+ - name : Install poetry
47+ run : pipx install poetry
4148 - name : Set up Python
42- uses : actions/setup-python@v2
49+ uses : actions/setup-python@v4
4350 with :
4451 python-version : " ${{ matrix.py_version }}"
45- - name : Update pip
46- run : python -m pip install -U pip
47- - name : Install poetry
48- run : python -m pip install poetry
52+ cache : " poetry"
4953 - name : Install deps
5054 run : poetry install
51- env :
52- POETRY_VIRTUALENVS_CREATE : false
5355 - name : Run pytest check
5456 run : poetry run pytest -vv -n auto --cov="taskiq_valkey" .
5557 - name : Generate report
5658 run : poetry run coverage xml
5759 - name : Upload coverage reports to Codecov with GitHub Action
5860 uses : codecov/codecov-action@v3
59- if : matrix.py_version == '3.9 '
61+ if : matrix.os == 'ubuntu-latest' && matrix. py_version == '3.11 '
6062 with :
6163 token : ${{ secrets.CODECOV_TOKEN }}
6264 fail_ci_if_error : false
0 commit comments