16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
19
-
19
+
20
20
- name : Set up Python ${{ matrix.python-version }}
21
21
uses : actions/setup-python@v5
22
22
with :
@@ -29,28 +29,20 @@ jobs:
29
29
virtualenvs-create : true
30
30
virtualenvs-in-project : true
31
31
32
- - name : Load cached Poetry dependencies
33
- id : cached-poetry-dependencies
34
- uses : actions/cache@v4
35
- with :
36
- path : .venv
37
- key : venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
38
-
39
32
- name : Install dependencies
40
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
41
33
run : poetry install --with dev
42
-
34
+
43
35
- name : Run tests
44
36
run : |
45
37
# Verify test_responses.yml exists
46
- test -f tests/test_responses.yml || (echo "tests/test_responses.yml not found" && exit 1)
38
+ # test -f tests/test_responses.yml || (echo "tests/test_responses.yml not found" && exit 1)
47
39
poetry run pytest tests/ -v
48
40
49
41
lint :
50
42
runs-on : ubuntu-latest
51
43
steps :
52
44
- uses : actions/checkout@v4
53
-
45
+
54
46
- name : Set up Python
55
47
uses : actions/setup-python@v5
56
48
with :
@@ -63,24 +55,16 @@ jobs:
63
55
virtualenvs-create : true
64
56
virtualenvs-in-project : true
65
57
66
- - name : Load cached Poetry dependencies
67
- id : cached-poetry-dependencies
68
- uses : actions/cache@v4
69
- with :
70
- path : .venv
71
- key : venv-${{ runner.os }}-lint-${{ hashFiles('**/poetry.lock') }}
72
-
73
58
- name : Install dependencies
74
- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
75
59
run : poetry install --with dev
76
-
60
+
77
61
- name : Check formatting
78
62
run : |
79
63
poetry run black --check .
80
64
poetry run isort --check .
81
-
65
+
82
66
- name : Type checking
83
67
run : poetry run mypy src/
84
-
68
+
85
69
- name : Lint
86
70
run : poetry run ruff check .
0 commit comments