@@ -19,21 +19,26 @@ jobs:
19
19
- uses : actions/setup-python@v5
20
20
with :
21
21
python-version : 3.9
22
+
23
+ - uses : actions/cache@v4
24
+ id : cache
25
+ with :
26
+ path : ${{ env.pythonLocation }}
27
+ key : ${{ runner.os }}-static-analysis-${{ hashFiles('pyproject.toml') }}-test-v03
22
28
- uses : astral-sh/setup-uv@v6
29
+ if : steps.cache.outputs.cache-hit != 'true'
23
30
with :
24
31
version : " latest"
25
- - name : Install Dependencies and library
26
- shell : bash
32
+ - name : Install Dependencies
33
+ if : steps.cache.outputs.cache-hit != 'true'
27
34
run : uv pip install --system ".[dev]"
28
35
29
36
- name : Run formatter
30
37
shell : bash
31
38
run : ruff format taskiq_faststream
32
-
33
39
- name : Run ruff
34
40
shell : bash
35
41
run : ruff check taskiq_faststream
36
-
37
42
- name : Run mypy
38
43
shell : bash
39
44
run : mypy taskiq_faststream
@@ -52,17 +57,20 @@ jobs:
52
57
uses : actions/setup-python@v5
53
58
with :
54
59
python-version : ${{ matrix.python-version }}
55
- - uses : astral-sh/setup-uv@v6
56
- with :
57
- version : " latest"
60
+
58
61
- uses : actions/cache@v4
59
62
id : cache
60
63
with :
61
64
path : ${{ env.pythonLocation }}
62
65
key : ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test-v03
66
+ - uses : astral-sh/setup-uv@v6
67
+ if : steps.cache.outputs.cache-hit != 'true'
68
+ with :
69
+ version : " latest"
63
70
- name : Install Dependencies
64
71
if : steps.cache.outputs.cache-hit != 'true'
65
72
run : uv pip install --system ".[test]"
73
+
66
74
- run : mkdir coverage
67
75
- name : Test
68
76
run : bash scripts/test.sh
0 commit comments