@@ -15,16 +15,15 @@ concurrency:
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- # see https://datachain.ai/blog/testing-external-contributions-using-github-actions-secrets
18
+ # see https://datachain.ai/blog/testing-external-contributions-using-github-actions-secrets
19
19
# the point of this is to forbid external contributors from running ci without explicit
20
20
# approval from the maintainers (via the environment external-contributors)
21
21
# this allows tests to be run with secrets on forks after the maintainers have approved the run
22
22
#
23
- # note: you may think the "run ci with approval setting" in github is enough,
23
+ # note: you may think the "run ci with approval setting" in github is enough,
24
24
# but it doesn't work for pull_request_target
25
25
authorize :
26
- environment :
27
- ${{ github.event_name == 'pull_request_target' &&
26
+ environment : ${{ github.event_name == 'pull_request_target' &&
28
27
github.event.pull_request.head.repo.full_name != github.repository &&
29
28
' external-contributors' || 'internal-contributors' }}
30
29
runs-on : ubuntu-latest
41
40
runs-on : ubuntu-latest
42
41
strategy :
43
42
matrix :
44
- postgres-version : [ 16, 17 ]
43
+ postgres-version : [16, 17]
45
44
fail-fast : false
46
45
47
46
steps :
79
78
80
79
- name : Check Python Formatting
81
80
run : docker exec pgai-ext just format
82
-
81
+
83
82
- name : Compare requirements file
84
83
run : docker exec pgai-ext just check-requirements
85
84
@@ -150,7 +149,7 @@ jobs:
150
149
with :
151
150
python-version-file : " ./projects/pgai/.python-version"
152
151
153
- - name : CI pipeline. Install dependencies, run linters and formatters, execute tests and build the project",
152
+ - name : CI pipeline. Install dependencies, run linters and formatters, execute tests and build the project",
154
153
run : just pgai ci
155
154
env :
156
155
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -180,10 +179,13 @@ jobs:
180
179
runs-on : ubuntu-latest
181
180
strategy :
182
181
matrix :
183
- postgres-version : [ 15, 16, 17 ]
182
+ postgres-version : [15, 16, 17]
184
183
fail-fast : false
185
184
186
185
steps :
186
+ - name : Delete huge unnecessary tools folder
187
+ run : rm -rf /opt/hostedtoolcache
188
+
187
189
- uses : actions/checkout@v4
188
190
with :
189
191
# in a pull_request_target event, the ref is the `main` branch not the PR branch
@@ -203,8 +205,8 @@ jobs:
203
205
uses : actions/setup-python@v5
204
206
with :
205
207
python-version-file : " ./projects/pgai/.python-version"
206
-
207
- - name : DB sub moduleCI pipeline. Install dependencies, run linters execute tests and build the project",
208
+
209
+ - name : DB sub moduleCI pipeline. Install dependencies, run linters execute tests and build the project",
208
210
run : just pgai db ci
209
211
env :
210
212
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
@@ -220,7 +222,7 @@ jobs:
220
222
runs-on : ubuntu-latest
221
223
strategy :
222
224
matrix :
223
- python-version : [ "3.10", "3.11", "3.12", "3.13" ]
225
+ python-version : ["3.10", "3.11", "3.12", "3.13"]
224
226
fail-fast : true
225
227
226
228
steps :
@@ -229,7 +231,7 @@ jobs:
229
231
# in a pull_request_target event, the ref is the `main` branch not the PR branch
230
232
# so we need to tell checkout to use the head.ref instead.
231
233
ref : ${{ github.event.pull_request.head.sha || github.ref }}
232
-
234
+
233
235
- name : " Set up Python"
234
236
uses : actions/setup-python@v5
235
237
with :
0 commit comments