@@ -32,14 +32,22 @@ jobs:
3232
3333 - name : Cache global Poetry virtualenvs
3434
35+ # uses: actions/cache@v4
36+ # with:
37+ # path: ~/.cache/pypoetry/virtualenvs
38+ # key: ${{ runner.os }}-poetry-global-venv-py${{ matrix.python-version || 'all' }}-${{ hashFiles('**/poetry.lock') }}
39+ # restore-keys: |
40+ # ${{ runner.os }}-poetry-global-venv-py${{ matrix.python-version || 'all' }}-
41+
3542 uses : actions/cache@v4
3643 with :
3744 path : ~/.cache/pypoetry/virtualenvs
38- key : ${{ runner.os }}-poetry-global- venv-py ${{ matrix.python-version || 'all' }}-${{ hashFiles('** /poetry.lock') }}
45+ key : ${{ runner.os }}-poetry-venv-${{ matrix.python-version }}-${{ hashFiles('<project> /poetry.lock') }}
3946 restore-keys : |
40- ${{ runner.os }}-poetry-global-venv-py${{ matrix.python-version || 'all' }}-
47+ ${{ runner.os }}-poetry-venv-${{ matrix.python-version }}-
48+
49+
4150
42-
4351 - name : Set up AWS credentials
4452 env :
4553 AWS_ACCESS_KEY_ID : " FOOBARKEY"
8593 id : acklambda
8694 continue-on-error : true
8795 run : |
88- poetry env use 3.10
89- poetry install
90- poetry run coverage run -m unittest discover || echo "ack-lambda tests failed" >> ../failed_tests.txt
91- poetry run coverage xml -o ../sonarcloud-coverage-ack-lambda.xml
96+ $TEST_SCRIPT 3.10 "ack-lambda" "ack-lambda.xml"
9297
9398 - name : Run unittest with coverage-delta
9499 if : matrix.python-version == '3.11'
@@ -98,10 +103,7 @@ jobs:
98103 PYTHONPATH : delta_backend/src:delta_backend/tests
99104 continue-on-error : true
100105 run : |
101- poetry env use 3.11
102- poetry install
103- poetry run coverage run -m unittest discover || echo "delta tests failed" >> ../failed_tests.txt
104- poetry run coverage xml -o ../sonarcloud-coverage-delta.xml
106+ $RUN_TEST 3.11 delta_backend delta.xml
105107
106108 # - name: Run unittest with coverage-fhir-api
107109 # working-directory: backend
0 commit comments