@@ -249,6 +249,7 @@ jobs:
249
249
with :
250
250
name : unit_sidecar_coverage
251
251
path : codeclimate.unit_sidecar_coverage.json
252
+
252
253
unit-test-frontend :
253
254
name : Unit-testing frontend
254
255
runs-on : ${{ matrix.os }}
@@ -320,6 +321,53 @@ jobs:
320
321
- name : test
321
322
run : ./ci/github/unit-testing/python-linting.bash test
322
323
324
+ unit-test-postgres-database :
325
+ name : Unit-testing postgres-database
326
+ runs-on : ${{ matrix.os }}
327
+ strategy :
328
+ matrix :
329
+ python : [3.6]
330
+ os : [ubuntu-20.04]
331
+ fail-fast : false
332
+ steps :
333
+ - uses : actions/checkout@v2
334
+ - name : setup docker
335
+ run : |
336
+ sudo ./ci/github/helpers/setup_docker_compose.bash
337
+ ./ci/github/helpers/setup_docker_experimental.bash
338
+ ./ci/github/helpers/setup_docker_buildx.bash
339
+ echo ::set-env name=DOCKER_BUILDX::1
340
+ - name : setup python environment
341
+
342
+ with :
343
+ python-version : ${{ matrix.python }}
344
+ - name : show system version
345
+ run : ./ci/helpers/show_system_versions.bash
346
+ - uses : actions/cache@v1
347
+ name : getting cached data
348
+ with :
349
+ path : ~/.cache/pip
350
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
351
+ restore-keys : |
352
+ ${{ runner.os }}-pip-
353
+ - name : install
354
+ run : ./ci/github/unit-testing/postgres-database.bash install
355
+ - name : test
356
+ run : ./ci/github/unit-testing/postgres-database.bash test
357
+ - uses : codecov/codecov-action@v1
358
+ with :
359
+ flags : unittests # optional
360
+ - name : prepare codeclimate coverage file
361
+ run : |
362
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
363
+ chmod +x ./cc-test-reporter
364
+ ./cc-test-reporter format-coverage -t coverage.py -o codeclimate.unit_postgresdb_coverage.json coverage.xml
365
+ - name : upload codeclimate coverage
366
+ uses : actions/upload-artifact@v2
367
+ with :
368
+ name : unit_postgresdb_coverage
369
+ path : codeclimate.unit_postgresdb_coverage.json
370
+
323
371
unit-test-service-library :
324
372
name : Unit-testing service-library
325
373
runs-on : ${{ matrix.os }}
0 commit comments