@@ -19,24 +19,24 @@ jobs:
19
19
- uses : actions/setup-python@v5
20
20
with :
21
21
python-version : 3.9
22
+ - uses : astral-sh/setup-uv@v6
23
+ with :
24
+ version : " latest"
22
25
- name : Install Dependencies and library
23
26
shell : bash
24
- run : |
25
- set -ux
26
- python -m pip install --upgrade pip
27
- pip install -e ".[dev]"
27
+ run : uv pip install --system ".[dev]"
28
28
29
29
- name : Run formatter
30
30
shell : bash
31
31
run : ruff format taskiq_faststream
32
32
33
- - name : Run mypy
33
+ - name : Run ruff
34
34
shell : bash
35
- run : mypy taskiq_faststream
35
+ run : ruff check taskiq_faststream
36
36
37
- - name : Run ruff
37
+ - name : Run mypy
38
38
shell : bash
39
- run : ruff taskiq_faststream
39
+ run : mypy taskiq_faststream
40
40
41
41
test :
42
42
if : github.event.pull_request.draft == false
@@ -52,14 +52,17 @@ jobs:
52
52
uses : actions/setup-python@v5
53
53
with :
54
54
python-version : ${{ matrix.python-version }}
55
+ - uses : astral-sh/setup-uv@v6
56
+ with :
57
+ version : " latest"
55
58
- uses : actions/cache@v4
56
59
id : cache
57
60
with :
58
61
path : ${{ env.pythonLocation }}
59
62
key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
60
63
- name : Install Dependencies
61
64
if : steps.cache.outputs.cache-hit != 'true'
62
- run : pip install -e .[test]
65
+ run : uv pip install --system " .[test]"
63
66
- run : mkdir coverage
64
67
- name : Test
65
68
run : bash scripts/test.sh
83
86
84
87
- uses : actions/setup-python@v5
85
88
with :
86
- python-version : ' 3.8'
89
+ python-version : 3.9
90
+
91
+ - uses : astral-sh/setup-uv@v6
92
+ with :
93
+ version : " latest"
87
94
88
95
- name : Get coverage files
89
96
uses : actions/download-artifact@v4
92
99
path : coverage
93
100
merge-multiple : true
94
101
95
- - run : pip install coverage[toml]
102
+ - run : uv pip install --system " coverage[toml]"
96
103
97
104
- run : ls -la coverage
98
105
- run : coverage combine coverage
0 commit comments