-
Notifications
You must be signed in to change notification settings - Fork 154
232 lines (223 loc) · 8.07 KB
/
Copy path_downstream-test-oracledb.yml
File metadata and controls
232 lines (223 loc) · 8.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
name: Downstream test (oracledb)
on:
workflow_call:
inputs:
package:
type: string
required: true
needs_cmake:
type: boolean
required: false
default: false
needs_rust:
type: boolean
required: false
default: false
needs_uv:
type: boolean
required: false
default: false
permissions:
actions: read
contents: read
jobs:
build-numpy-wheels:
runs-on: ubuntu-latest
env:
PACKAGES_TO_BUILD: numpy==2.2.6
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get GraalPy build artifact
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: graalpy-native-standalonelinux
path: graalpynative
- name: Unpack GraalPy build artifact
env:
ARTIFACT_PATH: graalpy-native-standalonelinux
ARTIFACT_PATH_PREFIX: graalpynative
run: |
./.github/scripts/unpack-artifact graalpy-native-standalonelinux
mv $ARTIFACT_PATH_PREFIX/main/mxbuild/linux-amd64/GRAALPY_NATIVE_STANDALONE/ graalpy-native-standalone
- name: Build numpy wheels
run: |
sudo apt-get update
sudo apt-get install -y gfortran libopenblas-dev
graalpy-native-standalone/bin/graalpy -m venv graalpy
graalpy/bin/pip install wheel
graalpy/bin/pip wheel -w wheelhouse "$PACKAGES_TO_BUILD"
- name: Store numpy wheels
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: wheels-numpy
path: wheelhouse/*.whl
if-no-files-found: error
build-pandas-wheels:
needs: build-numpy-wheels
runs-on: ubuntu-latest
env:
PACKAGES_TO_BUILD: pandas==2.2.3
PIP_FIND_LINKS: ${{ github.workspace }}/dependency-wheels
PIP_PREFER_BINARY: "1"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get GraalPy build artifact
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: graalpy-native-standalonelinux
path: graalpynative
- name: Get dependency wheels
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: wheels-numpy
path: dependency-wheels
- name: Unpack GraalPy build artifact
env:
ARTIFACT_PATH: graalpy-native-standalonelinux
ARTIFACT_PATH_PREFIX: graalpynative
run: |
./.github/scripts/unpack-artifact graalpy-native-standalonelinux
mv $ARTIFACT_PATH_PREFIX/main/mxbuild/linux-amd64/GRAALPY_NATIVE_STANDALONE/ graalpy-native-standalone
- name: Build pandas wheels
run: |
sudo apt-get update
sudo apt-get install -y libopenblas-dev
graalpy-native-standalone/bin/graalpy -m venv graalpy
graalpy/bin/pip install wheel
graalpy/bin/pip install --no-index --find-links dependency-wheels numpy==2.2.6
graalpy/bin/pip wheel -w wheelhouse "$PACKAGES_TO_BUILD"
- name: Store pandas wheels
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: wheels-pandas
path: wheelhouse/*.whl
if-no-files-found: error
build-pyarrow-wheels:
needs: build-numpy-wheels
runs-on: ubuntu-latest
env:
PACKAGES_TO_BUILD: pyarrow==20.0.0
PIP_FIND_LINKS: ${{ github.workspace }}/dependency-wheels
PIP_PREFER_BINARY: "1"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get GraalPy build artifact
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: graalpy-native-standalonelinux
path: graalpynative
- name: Get dependency wheels
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: wheels-numpy
path: dependency-wheels
- name: Unpack GraalPy build artifact
env:
ARTIFACT_PATH: graalpy-native-standalonelinux
ARTIFACT_PATH_PREFIX: graalpynative
run: |
./.github/scripts/unpack-artifact graalpy-native-standalonelinux
mv $ARTIFACT_PATH_PREFIX/main/mxbuild/linux-amd64/GRAALPY_NATIVE_STANDALONE/ graalpy-native-standalone
- name: Build pyarrow wheels
run: |
sudo apt-get update
sudo apt-get install -y libffi-dev \
libboost-all-dev \
libopenblas-dev \
libsnappy-dev \
libbrotli-dev \
libssl-dev \
libthrift-dev \
libjemalloc-dev \
libxsimd-dev \
libzstd-dev \
libre2-dev \
libmimalloc-dev \
liblz4-dev \
libbz2-dev \
llvm llvm-dev \
lld liblld-dev \
clang libclang-dev \
cmake
graalpy-native-standalone/bin/graalpy -m venv graalpy
graalpy/bin/pip install wheel
graalpy/bin/pip install --no-index --find-links dependency-wheels numpy==2.2.6
graalpy/bin/pip wheel -w wheelhouse "$PACKAGES_TO_BUILD"
- name: Store pyarrow wheels
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: wheels-pyarrow
path: wheelhouse/*.whl
if-no-files-found: error
downstream:
needs:
- build-pandas-wheels
- build-pyarrow-wheels
strategy:
fail-fast: false
matrix:
os:
- id: ubuntu-latest
platform: linux
arch: amd64
runs-on: ${{ matrix.os.id }}
env:
ORACLE_CLIENT_DIR: /opt/oracle/instantclient
PIP_FIND_LINKS: /tmp/oracledb-wheels
PIP_PREFER_BINARY: "1"
PYO_TEST_CONNECT_STRING: "127.0.0.1:1521/FREEPDB1"
PYO_TEST_ADMIN_PASSWORD: "asdf12345678"
services:
oracledb:
image: container-registry.oracle.com/database/free@sha256:51940ce2a4c9a085c9deb715713d68c579756e9bf09a0d7318c7e3e28f70ba1e
env:
ORACLE_PWD: ${{ env.PYO_TEST_ADMIN_PASSWORD }}
ports:
- 1521:1521
- 5500:5500
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Get package wheels
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
pattern: wheels-*
path: /tmp/oracledb-wheels
merge-multiple: true
- name: Install wheel runtime dependencies
run: |
sudo apt-get update
sudo apt-get install -y unzip libffi-dev \
libboost-all-dev \
libopenblas-dev \
libsnappy-dev \
libbrotli-dev \
libssl-dev \
libthrift-dev \
libjemalloc-dev \
libxsimd-dev \
libzstd-dev \
libre2-dev \
libmimalloc-dev \
liblz4-dev \
libbz2-dev \
llvm llvm-dev \
lld liblld-dev \
clang libclang-dev \
cmake
- name: Install Oracle Instant Client
run: |
curl -fL https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip -o instantclient-basiclite.zip
sudo mkdir -p "$ORACLE_CLIENT_DIR"
sudo unzip -q instantclient-basiclite.zip -d /opt/oracle
sudo mv /opt/oracle/instantclient_*/* "$ORACLE_CLIENT_DIR"
sudo rmdir /opt/oracle/instantclient_*
echo "LD_LIBRARY_PATH=$ORACLE_CLIENT_DIR" >> "$GITHUB_ENV"
- name: Run downstream test
uses: ./.github/actions/downstream-test
with:
package: ${{ inputs.package }}
needs_cmake: ${{ inputs.needs_cmake }}
needs_rust: ${{ inputs.needs_rust }}
needs_uv: ${{ inputs.needs_uv }}
platform: ${{ matrix.os.platform }}
arch: ${{ matrix.os.arch }}