1- name : Testing package
1+ name : Testing taskiq-valkey
22
3- on : push
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - develop
8+ pull_request :
49
510jobs :
611 lint :
712 strategy :
813 matrix :
914 cmd :
1015 - black
11- - mypy
1216 - ruff
17+ - mypy
1318 runs-on : ubuntu-latest
1419 steps :
1520 - uses : actions/checkout@v4
@@ -18,40 +23,40 @@ jobs:
1823 - name : Set up Python
1924 uses : actions/setup-python@v4
2025 with :
21- python-version : " 3.9 "
26+ python-version : " 3.11 "
2227 cache : " poetry"
2328 - name : Install deps
2429 run : poetry install
2530 - name : Run lint check
2631 run : poetry run pre-commit run -a ${{ matrix.cmd }}
2732 pytest :
28- permissions :
29- checks : write
30- pull-requests : write
31- contents : write
3233 strategy :
3334 matrix :
3435 py_version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
35- os : [ubuntu-latest, windows-latest]
36- runs-on : " ${{ matrix.os }}"
36+ runs-on : " ubuntu-latest"
3737 steps :
3838 - uses : actions/checkout@v4
39- - name : Install poetry
40- run : pipx install poetry
39+ - name : Set up Valkey instance and Valkey cluster
40+ run : docker compose up -d
4141 - name : Set up Python
42- uses : actions/setup-python@v4
42+ uses : actions/setup-python@v2
4343 with :
4444 python-version : " ${{ matrix.py_version }}"
45- cache : " poetry"
45+ - name : Update pip
46+ run : python -m pip install -U pip
47+ - name : Install poetry
48+ run : python -m pip install poetry
4649 - name : Install deps
4750 run : poetry install
51+ env :
52+ POETRY_VIRTUALENVS_CREATE : false
4853 - name : Run pytest check
4954 run : poetry run pytest -vv -n auto --cov="taskiq_valkey" .
5055 - name : Generate report
5156 run : poetry run coverage xml
5257 - name : Upload coverage reports to Codecov with GitHub Action
5358 uses : codecov/codecov-action@v3
54- if : matrix.os == 'ubuntu-latest' && matrix. py_version == '3.11 '
59+ if : matrix.py_version == '3.9 '
5560 with :
5661 token : ${{ secrets.CODECOV_TOKEN }}
5762 fail_ci_if_error : false
0 commit comments