2323 types :
2424 - created
2525jobs :
26- dependencies :
27- name : Install dependencies
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/checkout@v4
31-
32- # rust needed to install trunk
33- - name : Install Rust stable toolchain
34- uses : dtolnay/rust-toolchain@stable
35-
36- - name : Install stoml and pg-trunk
37- shell : bash
38- run : |
39- set -xe
40- wget https://github.com/freshautomations/stoml/releases/download/v0.7.1/stoml_linux_amd64 &> /dev/null
41- mv stoml_linux_amd64 stoml
42- chmod +x stoml
43- sudo mv stoml /usr/local/bin/
44- cargo install pg-trunk
45-
46- - name : Cache binaries
47- uses : actions/cache@v4
48- with :
49- path : |
50- /usr/local/bin/stoml
51- ~/.cargo/bin/trunk
52- key : ${{ runner.os }}-bins-${{ github.sha }}
53- restore-keys : |
54- ${{ runner.os }}-bins-
55-
5626 lint :
5727 name : Run linters
5828 runs-on : ubuntu-latest
10373
10474 - name : Test Core - Integration
10575 # skip when on external forks
106- if : github.event.pull_request.head.repo.full_name == github.repository
76+ if : github.repository_owner == 'tembo-io'
10777 env :
10878 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
10979 CO_API_KEY : ${{ secrets.CO_API_KEY }}
11585
11686 test :
11787 name : Run tests
118- needs : dependencies
119- runs-on : ubuntu-24.04
88+ runs-on : ubuntu-latest
12089 services :
12190 # Label used to access the service container
12291 vector-serve :
@@ -129,27 +98,17 @@ jobs:
12998 uses : dtolnay/rust-toolchain@stable
13099 - uses : Swatinem/rust-cache@v2
131100 with :
132- prefix-key : " extension-test"
133101 workspaces : |
134102 vectorize
135103 # Additional directories to cache
136104 cache-directories : |
137105 /home/runner/.pgrx
138106 - name : Install sys dependencies
139107 run : |
140- sudo apt-get update && sudo apt-get install -y postgresql-server -dev-16 libopenblas -dev libreadline -dev
108+ sudo apt-get update && sudo apt-get install -y build-essential libreadline-dev zlib1g-dev flex bison libclang-dev postgresql-client libicu -dev make wget pkg-config libssl -dev git gcc libopenblas -dev
141109 - uses : ./.github/actions/pgx-init
142110 with :
143111 working-directory : ./extension
144- - name : Restore cached binaries
145- uses : actions/cache@v4
146- with :
147- path : |
148- /usr/local/bin/stoml
149- ~/.cargo/bin/trunk
150- key : ${{ runner.os }}-bins-${{ github.sha }}
151- restore-keys : |
152- ${{ runner.os }}-bins-
153112 - name : setup-tests
154113 run : |
155114 make setup
@@ -158,7 +117,7 @@ jobs:
158117 echo "\q" | make run
159118 make test-unit
160119 - name : integration-test
161- if : github.event.pull_request.head.repo.full_name == github.repository
120+ if : github.repository_owner == 'tembo-io'
162121 env :
163122 HF_API_KEY : ${{ secrets.HF_API_KEY }}
164123 CO_API_KEY : ${{ secrets.CO_API_KEY }}
0 commit comments