Skip to content

Commit 097a85e

Browse files
committed
chore: free space for db module ci
1 parent b7badfe commit 097a85e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
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
1919
# the point of this is to forbid external contributors from running ci without explicit
2020
# approval from the maintainers (via the environment external-contributors)
2121
# this allows tests to be run with secrets on forks after the maintainers have approved the run
2222
#
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,
2424
# but it doesn't work for pull_request_target
2525
authorize:
26-
environment:
27-
${{ github.event_name == 'pull_request_target' &&
26+
environment: ${{ github.event_name == 'pull_request_target' &&
2827
github.event.pull_request.head.repo.full_name != github.repository &&
2928
'external-contributors' || 'internal-contributors' }}
3029
runs-on: ubuntu-latest
@@ -41,7 +40,7 @@ jobs:
4140
runs-on: ubuntu-latest
4241
strategy:
4342
matrix:
44-
postgres-version: [ 16, 17 ]
43+
postgres-version: [16, 17]
4544
fail-fast: false
4645

4746
steps:
@@ -79,7 +78,7 @@ jobs:
7978

8079
- name: Check Python Formatting
8180
run: docker exec pgai-ext just format
82-
81+
8382
- name: Compare requirements file
8483
run: docker exec pgai-ext just check-requirements
8584

@@ -150,7 +149,7 @@ jobs:
150149
with:
151150
python-version-file: "./projects/pgai/.python-version"
152151

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",
154153
run: just pgai ci
155154
env:
156155
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -180,10 +179,13 @@ jobs:
180179
runs-on: ubuntu-latest
181180
strategy:
182181
matrix:
183-
postgres-version: [ 15, 16, 17 ]
182+
postgres-version: [15, 16, 17]
184183
fail-fast: false
185184

186185
steps:
186+
- name: Delete huge unnecessary tools folder
187+
run: rm -rf /opt/hostedtoolcache
188+
187189
- uses: actions/checkout@v4
188190
with:
189191
# in a pull_request_target event, the ref is the `main` branch not the PR branch
@@ -203,8 +205,8 @@ jobs:
203205
uses: actions/setup-python@v5
204206
with:
205207
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",
208210
run: just pgai db ci
209211
env:
210212
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
@@ -220,7 +222,7 @@ jobs:
220222
runs-on: ubuntu-latest
221223
strategy:
222224
matrix:
223-
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
225+
python-version: ["3.10", "3.11", "3.12", "3.13"]
224226
fail-fast: true
225227

226228
steps:
@@ -229,7 +231,7 @@ jobs:
229231
# in a pull_request_target event, the ref is the `main` branch not the PR branch
230232
# so we need to tell checkout to use the head.ref instead.
231233
ref: ${{ github.event.pull_request.head.sha || github.ref }}
232-
234+
233235
- name: "Set up Python"
234236
uses: actions/setup-python@v5
235237
with:

0 commit comments

Comments
 (0)