Skip to content

Commit 022c228

Browse files
author
Roman Kisel
committed
Merge branch 'main' into release-6.0
2 parents 740486b + 7b45ea6 commit 022c228

10 files changed

+393
-80
lines changed

.github/workflows/dxapi-python-build.yml

Lines changed: 90 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
types: [opened, synchronize]
1111
branches:
1212
- "*"
13-
13+
1414
jobs:
1515
# build dxapi
1616
build-dxapi:
@@ -205,6 +205,7 @@ jobs:
205205
python-version: ${{ matrix.py_v }}
206206
- name: Install SWIG
207207
run: |
208+
brew install pcre
208209
cd swigwin
209210
tar -xzvf swig-3.0.12.tar.gz
210211
cd swig-3.0.12
@@ -255,7 +256,7 @@ jobs:
255256
with:
256257
name: tbapi-python-windows
257258
path: tbapi
258-
- name: Download tbapi-python-windows artifacts
259+
- name: Download tbapi-python-macos artifacts
259260
uses: actions/download-artifact@v2
260261
with:
261262
name: tbapi-python-macos
@@ -279,6 +280,39 @@ jobs:
279280
path: |
280281
./tbapi
281282
283+
download-timebase-installer:
284+
runs-on: ubuntu-20.04
285+
needs: [build-macos, build-windows] # linux installer needs for macos tests
286+
steps:
287+
- name: Check out repository code
288+
uses: actions/checkout@v2
289+
with:
290+
submodules: 'recursive'
291+
- name: Download linux installer
292+
uses: robinraju/release-downloader@v1.3
293+
with:
294+
repository: "finos/TimeBase-CE"
295+
tag: "6.1.7"
296+
fileName: "timebase-linux-installer-20220506.jar"
297+
- name: Download windows installer
298+
uses: robinraju/release-downloader@v1.3
299+
with:
300+
repository: "finos/TimeBase-CE"
301+
tag: "6.1.7"
302+
fileName: "timebase-windows-installer-20220506.jar"
303+
- name: Archive artifacts installer (temp task)
304+
uses: actions/upload-artifact@v2
305+
with:
306+
name: timebase-linux-installer
307+
path: |
308+
./timebase-linux-installer-20220506.jar
309+
- name: Archive artifacts installer
310+
uses: actions/upload-artifact@v2
311+
with:
312+
name: timebase-windows-installer
313+
path: |
314+
./timebase-windows-installer-20220506.jar
315+
282316
# Tests
283317
test-linux:
284318
runs-on: ubuntu-20.04
@@ -318,13 +352,13 @@ jobs:
318352
- name: Archive artifacts
319353
uses: actions/upload-artifact@v2
320354
with:
321-
name: test-reports-tbapi-python-linux
355+
name: test-reports-tbapi-python-linux-${{ matrix.py }}
322356
path: |
323357
./tests/reports
324358
325-
test-windows-smoke:
359+
test-windows:
326360
runs-on: windows-2019
327-
needs: [gather-artifacts]
361+
needs: [gather-artifacts, download-timebase-installer]
328362
strategy:
329363
matrix:
330364
py: ['3.6', '3.7', '3.8', '3.9', '3.10']
@@ -333,6 +367,22 @@ jobs:
333367
uses: actions/checkout@v2
334368
with:
335369
submodules: 'recursive'
370+
- name: Setup java for TimeBase installer
371+
uses: actions/setup-java@v1
372+
with:
373+
java-version: '11'
374+
- name: Download windows-installer artifacts
375+
uses: actions/download-artifact@v2
376+
with:
377+
name: timebase-windows-installer
378+
path: tests/install
379+
- name: Install and start TimeBase
380+
run: |
381+
cd tests/install
382+
java -jar timebase-windows-installer-20220506.jar auto-install-windows.xml
383+
cd Timebase/bin
384+
Start-Process -FilePath "./tdbserver.cmd" -ArgumentList "-home ."
385+
Start-Sleep 5
336386
- name: Download tbapi-python artifacts
337387
uses: actions/download-artifact@v2
338388
with:
@@ -346,11 +396,22 @@ jobs:
346396
chmod -R 777 ./tests
347397
cd ./tests
348398
python -c "import tbapi; print(tbapi.version())"
399+
python TestAll.py
400+
env:
401+
TIMEBASE_HOST: localhost
402+
TIMEBASE_PORT: 8011
403+
- name: Archive artifacts
404+
uses: actions/upload-artifact@v2
405+
with:
406+
name: test-reports-tbapi-python-windows-${{ matrix.py }}
407+
path: |
408+
./tests/reports
349409
350-
test-macos-smoke:
410+
test-macos:
351411
runs-on: macos-11
352-
needs: [gather-artifacts]
412+
needs: [gather-artifacts, download-timebase-installer]
353413
strategy:
414+
fail-fast: false
354415
matrix:
355416
py: ['3.6', '3.7', '3.8', '3.9', '3.10']
356417
include:
@@ -369,6 +430,21 @@ jobs:
369430
uses: actions/checkout@v2
370431
with:
371432
submodules: 'recursive'
433+
- name: Setup java for TimeBase installer
434+
uses: actions/setup-java@v1
435+
with:
436+
java-version: '11'
437+
- name: Download linux-installer artifacts
438+
uses: actions/download-artifact@v2
439+
with:
440+
name: timebase-linux-installer
441+
path: tests/install
442+
- name: Install and start TimeBase
443+
run: |
444+
cd tests/install
445+
java -jar timebase-linux-installer-20220506.jar auto-install-macos.xml
446+
cd Timebase/bin
447+
screen -dm ./tdbserver.sh -home . -port 8011
372448
- name: Download tbapi-python artifacts
373449
uses: actions/download-artifact@v2
374450
with:
@@ -382,3 +458,10 @@ jobs:
382458
chmod -R 777 ./tests
383459
cd ./tests
384460
python -c "import tbapi; print(tbapi.version())"
461+
python TestAll.py
462+
- name: Archive artifacts
463+
uses: actions/upload-artifact@v2
464+
with:
465+
name: test-reports-tbapi-python-macos-${{ matrix.py }}
466+
path: |
467+
./tests/reports

.github/workflows/dxapi-python-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ jobs:
239239
python-version: ${{ matrix.py_v }}
240240
- name: Install SWIG
241241
run: |
242+
brew install pcre
242243
cd swigwin
243244
tar -xzvf swig-3.0.12.tar.gz
244245
cd swig-3.0.12

0 commit comments

Comments
 (0)