@@ -804,6 +804,63 @@ jobs:
804804 name : codeclimate-${{ github.job }}-coverage
805805 path : codeclimate.${{ github.job }}_coverage.json
806806
807+ unit-test-service-library-aiohttp :
808+ timeout-minutes : 14 # if this timeout gets too small, then split the tests
809+ name : " [unit] service-library[aiohttp]"
810+ runs-on : ${{ matrix.os }}
811+ strategy :
812+ matrix :
813+ python : [3.8]
814+ os : [ubuntu-20.04]
815+ docker_buildx : [v0.5.1]
816+ docker_compose : [1.29.1]
817+ include :
818+ - docker_compose : 1.29.1
819+ docker_compose_sha : 8097769d32e34314125847333593c8edb0dfc4a5b350e4839bef8c2fe8d09de7
820+ fail-fast : false
821+ steps :
822+ - uses : actions/checkout@v2
823+ - name : setup docker buildx
824+ id : buildx
825+ uses : docker/setup-buildx-action@v1
826+ with :
827+ version : ${{ matrix.docker_buildx }}
828+ driver : docker
829+ - name : setup docker-compose
830+ run : sudo ./ci/github/helpers/setup_docker_compose.bash ${{ matrix.docker_compose }} ${{ matrix.docker_compose_sha }}
831+ - name : setup python environment
832+ uses : actions/setup-python@v2
833+ with :
834+ python-version : ${{ matrix.python }}
835+ - name : show system version
836+ run : ./ci/helpers/show_system_versions.bash
837+ - uses : actions/cache@v2
838+ name : getting cached data
839+ with :
840+ path : ~/.cache/pip
841+ key : ${{ runner.os }}-pip-service-library-${{ hashFiles('packages/service-library/requirements/ci[aiohttp].txt') }}
842+ restore-keys : |
843+ ${{ runner.os }}-pip-service-library-
844+ ${{ runner.os }}-pip-
845+ ${{ runner.os }}-
846+ - name : install
847+ run : ./ci/github/unit-testing/service-library.bash install_aiohttp
848+ - name : test
849+ run : ./ci/github/unit-testing/service-library.bash test_aiohttp
850+ 851+ with :
852+ flags : unittests # optional
853+ - name : prepare codeclimate coverage file
854+ run : |
855+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.7.0-linux-amd64 > ./cc-test-reporter
856+ chmod +x ./cc-test-reporter && ./cc-test-reporter --version
857+ ./cc-test-reporter format-coverage -t coverage.py -o codeclimate.${{ github.job }}_coverage.json coverage.xml
858+ - name : upload codeclimate coverage
859+ uses : actions/upload-artifact@v2
860+ with :
861+ name : codeclimate-${{ github.job }}-coverage
862+ path : codeclimate.${{ github.job }}_coverage.json
863+
807864 unit-test-settings-library :
808865 timeout-minutes : 14 # if this timeout gets too small, then split the tests
809866 name : " [unit] settings-library"
0 commit comments