@@ -27,24 +27,22 @@ jobs:
27
27
# Common steps:
28
28
- name : Checkout code
29
29
uses : actions/checkout@v4
30
- - name : Set up Poetry
31
- uses : Gr1N/setup-poetry@v9
32
- with :
33
- poetry-version : " 2.0.1"
34
30
- name : Set up Python
35
31
uses : actions/setup-python@v5
36
32
with :
37
33
python-version : ' 3.10'
38
- cache : ' poetry'
34
+ cache : ' pip'
35
+ - name : Install uv
36
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
39
37
- name : Install dependencies
40
- run : poetry install
38
+ run : uv pip install -e ".[dev]"
41
39
42
40
- name : Run Pytest with Coverage (Fast Tests Only)
43
41
timeout-minutes : 60
44
42
env :
45
43
GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
46
44
run : >
47
- poetry run coverage run -m pytest
45
+ uv run coverage run -m pytest
48
46
--durations=5 --exitfirst
49
47
-m "not slow and not requires_creds and not linting and not flaky"
50
48
@@ -54,19 +52,19 @@ jobs:
54
52
env :
55
53
GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
56
54
run : >
57
- poetry run coverage run -m pytest
55
+ uv run coverage run -m pytest
58
56
--durations=5 --exitfirst
59
57
-m "flaky and not slow and not requires_creds"
60
58
61
59
- name : Print Coverage Report
62
60
if : always()
63
- run : poetry run coverage report
61
+ run : uv run coverage report
64
62
65
63
- name : Create Coverage Artifacts
66
64
if : always()
67
65
run : |
68
- poetry run coverage html -d htmlcov
69
- poetry run coverage xml -o htmlcov/coverage.xml
66
+ uv run coverage html -d htmlcov
67
+ uv run coverage xml -o htmlcov/coverage.xml
70
68
71
69
- name : Upload coverage to GitHub Artifacts
72
70
if : always()
@@ -82,17 +80,15 @@ jobs:
82
80
# Common steps:
83
81
- name : Checkout code
84
82
uses : actions/checkout@v4
85
- - name : Set up Poetry
86
- uses : Gr1N/setup-poetry@v9
87
- with :
88
- poetry-version : " 1.7.1"
89
83
- name : Set up Python
90
84
uses : actions/setup-python@v5
91
85
with :
92
86
python-version : ' 3.10'
93
- cache : ' poetry'
87
+ cache : ' pip'
88
+ - name : Install uv
89
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
94
90
- name : Install dependencies
95
- run : poetry install
91
+ run : uv pip install -e ".[dev]"
96
92
97
93
# Job-specific step(s):
98
94
- name : Run Pytest (No-Creds)
@@ -101,19 +97,19 @@ jobs:
101
97
# Force this to a blank value.
102
98
GCP_GSM_CREDENTIALS : " "
103
99
run : >
104
- poetry run coverage run -m pytest
100
+ uv run coverage run -m pytest
105
101
--durations=5 --exitfirst
106
102
-m "not requires_creds and not linting and not super_slow and not flaky"
107
103
108
104
- name : Print Coverage Report
109
105
if : always()
110
- run : poetry run coverage report
106
+ run : uv run coverage report
111
107
112
108
- name : Create Coverage Artifacts
113
109
if : always()
114
110
run : |
115
- poetry run coverage html -d htmlcov
116
- poetry run coverage xml -o htmlcov/coverage.xml
111
+ uv run coverage html -d htmlcov
112
+ uv run coverage xml -o htmlcov/coverage.xml
117
113
118
114
- name : Upload coverage to GitHub Artifacts
119
115
if : always()
@@ -149,37 +145,35 @@ jobs:
149
145
# Common steps:
150
146
- name : Checkout code
151
147
uses : actions/checkout@v4
152
- - name : Set up Poetry
153
- uses : Gr1N/setup-poetry@v9
154
- with :
155
- poetry-version : " 1.7.1"
156
148
- name : Set up Python
157
149
uses : actions/setup-python@v5
158
150
with :
159
151
python-version : ${{ matrix.python-version }}
160
- cache : ' poetry'
152
+ cache : ' pip'
153
+ - name : Install uv
154
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
161
155
- name : Install dependencies
162
- run : poetry install
156
+ run : uv pip install -e ".[dev]"
163
157
164
158
# Job-specific step(s):
165
159
- name : Run Pytest
166
160
timeout-minutes : 60
167
161
env :
168
162
GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
169
163
run : >
170
- poetry run coverage run -m pytest
164
+ uv run coverage run -m pytest
171
165
--verbose
172
166
-m "not linting and not super_slow and not flaky"
173
167
174
168
- name : Print Coverage Report
175
169
if : always()
176
- run : poetry run coverage report
170
+ run : uv run coverage report
177
171
178
172
- name : Create Coverage Artifacts
179
173
if : always()
180
174
run : |
181
- poetry run coverage html -d htmlcov
182
- poetry run coverage xml -o htmlcov/coverage.xml
175
+ uv run coverage html -d htmlcov
176
+ uv run coverage xml -o htmlcov/coverage.xml
183
177
184
178
- name : Upload coverage to GitHub Artifacts
185
179
if : always()
@@ -198,14 +192,13 @@ jobs:
198
192
uses : actions/setup-python@v5
199
193
with :
200
194
python-version : ' 3.10'
201
- - name : Set up Poetry
202
- uses : Gr1N/setup-poetry@v9
203
- with :
204
- poetry-version : " 1.7.1"
195
+ cache : ' pip'
196
+ - name : Install uv
197
+ run : curl -LsSf https://astral.sh/uv/install.sh | sh
205
198
- name : Install dependencies
206
- run : poetry install
199
+ run : uv pip install -e ".[dev]"
207
200
208
201
# Job-specific step(s):
209
202
- name : Run Deptry
210
203
run : |
211
- poetry run deptry .
204
+ uv run deptry .
0 commit comments