99
1010
1111jobs :
12- pylama :
12+ ruff :
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v2
15+ - uses : actions/checkout@v6
1616 - name : Setup python3.10
17- uses : actions/setup-python@v2
17+ uses : actions/setup-python@v6
1818 with :
1919 python-version : " 3.10"
20- - name : Cache virtualenv
21- id : venv-cache
22- uses : actions/cache@v3
23- with :
24- path : .venv
25- key : venv-${{ runner.os }}-${{ github.job }}-${{ github.ref }}
26- - run : python -m pip install poetry
27- - run : poetry install
28- - run : poetry run pylama
20+ - uses : astral-sh/setup-uv@v5
21+ - run : uv sync
22+ - run : uv run ruff check
2923 env :
3024 FORCE_COLOR : 1
3125 mypy :
3226 runs-on : ubuntu-latest
3327 steps :
34- - uses : actions/checkout@v2
28+ - uses : actions/checkout@v6
3529 - name : Setup python3.10
36- uses : actions/setup-python@v2
30+ uses : actions/setup-python@v6
3731 with :
3832 python-version : " 3.10"
39- - name : Cache virtualenv
40- id : venv-cache
41- uses : actions/cache@v3
42- with :
43- path : .venv
44- key : venv-${{ runner.os }}-${{ github.job }}-${{ github.ref }}
45- - run : python -m pip install poetry
46- - run : poetry install
47- - run : poetry run mypy
33+ - uses : astral-sh/setup-uv@v5
34+ - run : uv sync
35+ - run : uv run mypy
4836 env :
4937 FORCE_COLOR : 1
5038 docs :
@@ -53,24 +41,21 @@ jobs:
5341 rabbitmq :
5442 image : docker://mosquito/aiormq-rabbitmq
5543 ports :
56- - 5672:5672
5744 - 5671:5671
45+ - 5672:5672
46+ - 15671:15671
47+ - 15672:15672
5848 steps :
59- - uses : actions/checkout@v2
49+ - uses : actions/checkout@v6
6050 - name : Setup python3.10
61- uses : actions/setup-python@v2
51+ uses : actions/setup-python@v6
6252 with :
6353 python-version : " 3.10"
64- - name : Cache virtualenv
65- id : venv-cache
66- uses : actions/cache@v3
67- with :
68- path : .venv
69- key : venv-${{ runner.os }}-${{ github.job }}-${{ github.ref }}
70- - run : python -m pip install poetry
71- - run : poetry install
72- - run : poetry run pytest -svv README.rst
54+ - uses : astral-sh/setup-uv@v5
55+ - run : uv sync
56+ - run : uv run pytest -svv README.rst
7357 env :
58+ AMQP_URL : amqp://guest:guest@localhost//
7459 FORCE_COLOR : 1
7560
7661 tests :
8065 rabbitmq :
8166 image : docker://mosquito/aiormq-rabbitmq
8267 ports :
83- - 5672:5672
8468 - 5671:5671
69+ - 5672:5672
70+ - 15671:15671
71+ - 15672:15672
8572
8673 strategy :
8774 fail-fast : false
@@ -94,31 +81,26 @@ jobs:
9481 - ' 3.13'
9582 - ' 3.14'
9683 steps :
97- - uses : actions/checkout@v2
84+ - uses : actions/checkout@v6
9885 - name : Setup python${{ matrix.python }}
99- uses : actions/setup-python@v2
86+ uses : actions/setup-python@v6
10087 with :
10188 python-version : " ${{ matrix.python }}"
102- - name : Cache virtualenv
103- id : venv-cache
104- uses : actions/cache@v3
105- with :
106- path : .venv
107- key : venv-${{ runner.os }}-${{ github.job }}-${{ github.ref }}-${{ matrix.python }}
108- - run : python -m pip install poetry
109- - run : poetry install --with=uvloop
89+ - uses : astral-sh/setup-uv@v5
90+ - run : uv sync --group uvloop
11091 - name : pytest
11192 run : >-
112- poetry run pytest \
93+ uv run pytest \
11394 -vv \
11495 --cov=aiormq \
11596 --cov-report=term-missing \
11697 --doctest-modules \
11798 --aiomisc-test-timeout=120 \
11899 tests
119100 env :
101+ AMQP_URL : amqp://guest:guest@localhost//
120102 FORCE_COLOR : 1
121- - run : poetry run coveralls
103+ - run : uv run coveralls
122104 env :
123105 COVERALLS_PARALLEL : ' true'
124106 COVERALLS_SERVICE_NAME : github
0 commit comments