@@ -614,6 +614,53 @@ jobs:
614614 name : codeclimate-${{ github.job }}-coverage
615615 path : codeclimate.${{ github.job }}_coverage.json
616616
617+ unit-test-settings-library :
618+ name : " [unit] settings-library"
619+ runs-on : ${{ matrix.os }}
620+ strategy :
621+ matrix :
622+ python : [3.8]
623+ os : [ubuntu-20.04]
624+ fail-fast : false
625+ steps :
626+ - uses : actions/checkout@v2
627+ - name : setup docker
628+ run : |
629+ sudo ./ci/github/helpers/setup_docker_compose.bash
630+ ./ci/github/helpers/setup_docker_experimental.bash
631+ - name : setup python environment
632+ uses : actions/setup-python@v2
633+ with :
634+ python-version : ${{ matrix.python }}
635+ - name : show system version
636+ run : ./ci/helpers/show_system_versions.bash
637+ - uses : actions/cache@v2
638+ name : getting cached data
639+ with :
640+ path : ~/.cache/pip
641+ key : ${{ runner.os }}-pip-settings-library-${{ hashFiles('packages/settings-library/requirements/ci.txt') }}
642+ restore-keys : |
643+ ${{ runner.os }}-pip-settings-library-
644+ ${{ runner.os }}-pip-
645+ ${{ runner.os }}-
646+ - name : install
647+ run : ./ci/github/unit-testing/settings-library.bash install
648+ - name : test
649+ run : ./ci/github/unit-testing/settings-library.bash test
650+ - uses : codecov/codecov-action@v1
651+ with :
652+ flags : unittests # optional
653+ - name : prepare codeclimate coverage file
654+ run : |
655+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.7.0-linux-amd64 > ./cc-test-reporter
656+ chmod +x ./cc-test-reporter && ./cc-test-reporter --version
657+ ./cc-test-reporter format-coverage -t coverage.py -o codeclimate.${{ github.job }}_coverage.json coverage.xml
658+ - name : upload codeclimate coverage
659+ uses : actions/upload-artifact@v2
660+ with :
661+ name : codeclimate-${{ github.job }}-coverage
662+ path : codeclimate.${{ github.job }}_coverage.json
663+
617664 unit-test-models-library :
618665 name : " [unit] models-library"
619666 runs-on : ${{ matrix.os }}
@@ -1853,6 +1900,7 @@ jobs:
18531900 unit-test-dask-sidecar,
18541901 unit-test-service-integration,
18551902 unit-test-service-library,
1903+ unit-test-settings-library,
18561904 unit-test-models-library,
18571905 unit-test-simcore-sdk,
18581906 unit-test-storage,
@@ -1911,6 +1959,7 @@ jobs:
19111959 unit-test-python-linting,
19121960 unit-test-service-integration,
19131961 unit-test-service-library,
1962+ unit-test-settings-library,
19141963 unit-test-models-library,
19151964 unit-test-simcore-sdk,
19161965 unit-test-storage,
0 commit comments