-
Notifications
You must be signed in to change notification settings - Fork 0
241 lines (235 loc) · 7.55 KB
/
linux_x86_64.yaml
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
233
234
235
236
237
238
239
240
241
---
name: Linux wheels x86_64
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: "tmate debugging enabled"
required: false
default: false
env:
WHEEL_SDIR: wheelhouse
jobs:
build_psutil:
name: psutil ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: psutil
BUILD_COMMIT: release-6.0.0
WHEEL_SDIR: wheelhouse
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "cython wheel setuptools"
TEST_DEPENDS: "cython"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of psutil
run: |
echo $PATH
bash -x .github/workflows/build.sh
- name: Build Wheel of psutil
run: |
sudo apt install python3-virtualenv
- name: Build Wheel of pyproj
run: |
bash -x .github/workflows/wheel.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
build_pyproj:
name: pyproj ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: pyproj
BUILD_COMMIT: 3.6.1
WHEEL_SDIR: wheelhouse
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "cython wheel setuptools"
TEST_DEPENDS: "cython"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of pyproj
run: |
echo $PATH
bash -x .github/workflows/build.sh
- name: Build Wheel of pyproj
run: |
sudo apt install python3-virtualenv
- name: Build Wheel of pyproj
run: |
bash -x .github/workflows/wheel.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
build_Fiona:
name: Fiona ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: Fiona
BUILD_COMMIT: 1.9.5
GDAL_FIONA: 3.7.3
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "oldest-supported-numpy cython wheel numpy==1.26.2 setuptools"
TEST_DEPENDS: "oldest-supported-numpy attrs pytest click mock boto3 packaging hypothesis wheel pytz numpy==1.26.2 setuptools"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of Fiona
run: |
echo $PATH
bash -x .github/workflows/build.sh
- name: Build Wheel of Fiona
env:
BUILD_DEPENDS: "oldest-supported-numpy cython==0.29.26 wheel==0.34.2 numpy==1.26.2 setuptools"
TEST_DEPENDS: "oldest-supported-numpy attrs==21.4.0 pytest==6.2.5 click==8.0.3 mock boto3 packaging hypothesis==4.38.1 wheel==0.34.2 pytz numpy==1.26.2 setuptools"
run: |
echo $PATH
sudo apt install python3-virtualenv
bash -x .github/workflows/wheel.sh
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
build_GDAL:
name: GDAL ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
python: ["3.12"]
platform: ["x86_64"]
os-name: ["jammy"]
env:
REPO_DIR: gdal
BUILD_COMMIT: v3.7.3
WHEEL_SDIR: wheelhouse
PLAT: "${{ matrix.platform }}"
MB_PYTHON_VERSION: "${{ matrix.python }}"
MB_ML_VER: "2014"
BUILD_DEPENDS: "wheel numpy==1.26.2 setuptools"
TEST_DEPENDS: "numpy==1.26.2 setuptools"
TRAVIS_OS_NAME: ${{ matrix.os-name }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: get code of GDAL
run: |
bash -x .github/workflows/build.sh
- name: Build Wheel of GDAL
run: |
sudo apt install python3-virtualenv
bash -x .github/workflows/wheel.sh
- name: Setup debugging session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 90
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
test_wheel:
needs: [build_GDAL, build_pyproj, build_Fiona]
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.12"]
env:
BRANCH_TEST: ae-py312
PYTHON_VERSION: "${{ matrix.python-version }}"
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: download artifact
uses: actions/download-artifact@v3
id: download
with:
name: wheels
path: wheelhouse
- name: "Echo artifact download path"
run: echo ${{steps.download.outputs.download-path}}
- name: Test wheels with python ${{ matrix.python-version }}
shell: bash
run: |
set -x
echo "engine installation to test wheel"
python3 -m venv $HOME/openquake
source $HOME/openquake/bin/activate
pip install -U pip wheel setuptools
#pip install -r https://raw.githubusercontent.com/gem/oq-engine/master/requirements-py311-linux64.txt
cd ${{steps.download.outputs.download-path}}
PYCUT=`echo "${PYTHON_VERSION//.}"`
ls *${PYCUT}*
pip install --force-reinstall *${PYCUT}*
cd $HOME
git clone -b ${BRANCH_TEST} https://github.com/gem/oq-engine.git
cd oq-engine
git status
pip install -r requirements-py312-linux64.txt
pip install -e .
cd $HOME/oq-engine
oq engine --upgrade-db
sleep 5
pip install pytest
sleep 3
pytest -vsx --color=yes openquake/sep/tests/test_utils.py
pytest -vsx --color=yes openquake/sep
pytest -vsx --color=yes openquake/calculators
oq engine --run https://downloads.openquake.org/jobs/risk_test.zip
pytest -vsx --color=yes openquake/hazardlib/tests/gsim/kotha_2020_test.py