10
10
types : [opened, synchronize]
11
11
branches :
12
12
- " *"
13
-
13
+
14
14
jobs :
15
15
# build dxapi
16
16
build-dxapi :
@@ -205,6 +205,7 @@ jobs:
205
205
python-version : ${{ matrix.py_v }}
206
206
- name : Install SWIG
207
207
run : |
208
+ brew install pcre
208
209
cd swigwin
209
210
tar -xzvf swig-3.0.12.tar.gz
210
211
cd swig-3.0.12
@@ -255,7 +256,7 @@ jobs:
255
256
with :
256
257
name : tbapi-python-windows
257
258
path : tbapi
258
- - name : Download tbapi-python-windows artifacts
259
+ - name : Download tbapi-python-macos artifacts
259
260
uses : actions/download-artifact@v2
260
261
with :
261
262
name : tbapi-python-macos
@@ -279,6 +280,39 @@ jobs:
279
280
path : |
280
281
./tbapi
281
282
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
+
282
316
# Tests
283
317
test-linux :
284
318
runs-on : ubuntu-20.04
@@ -318,13 +352,13 @@ jobs:
318
352
- name : Archive artifacts
319
353
uses : actions/upload-artifact@v2
320
354
with :
321
- name : test-reports-tbapi-python-linux
355
+ name : test-reports-tbapi-python-linux-${{ matrix.py }}
322
356
path : |
323
357
./tests/reports
324
358
325
- test-windows-smoke :
359
+ test-windows :
326
360
runs-on : windows-2019
327
- needs : [gather-artifacts]
361
+ needs : [gather-artifacts, download-timebase-installer ]
328
362
strategy :
329
363
matrix :
330
364
py : ['3.6', '3.7', '3.8', '3.9', '3.10']
@@ -333,6 +367,22 @@ jobs:
333
367
uses : actions/checkout@v2
334
368
with :
335
369
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
336
386
- name : Download tbapi-python artifacts
337
387
uses : actions/download-artifact@v2
338
388
with :
@@ -346,11 +396,22 @@ jobs:
346
396
chmod -R 777 ./tests
347
397
cd ./tests
348
398
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
349
409
350
- test-macos-smoke :
410
+ test-macos :
351
411
runs-on : macos-11
352
- needs : [gather-artifacts]
412
+ needs : [gather-artifacts, download-timebase-installer ]
353
413
strategy :
414
+ fail-fast : false
354
415
matrix :
355
416
py : ['3.6', '3.7', '3.8', '3.9', '3.10']
356
417
include :
@@ -369,6 +430,21 @@ jobs:
369
430
uses : actions/checkout@v2
370
431
with :
371
432
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
372
448
- name : Download tbapi-python artifacts
373
449
uses : actions/download-artifact@v2
374
450
with :
@@ -382,3 +458,10 @@ jobs:
382
458
chmod -R 777 ./tests
383
459
cd ./tests
384
460
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
0 commit comments