@@ -158,7 +158,7 @@ jobs:
158158 strategy :
159159 fail-fast : false
160160 matrix :
161- python-version : ["3.9", "3.10", "3.11", "3.12"]
161+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
162162
163163 steps :
164164 - name : Checkout code
@@ -277,7 +277,7 @@ jobs:
277277 strategy :
278278 fail-fast : false
279279 matrix :
280- python-version : ["3.9", "3.10", "3.11", "3.12"]
280+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13" ]
281281 steps :
282282 - name : Checkout code
283283 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
@@ -293,11 +293,11 @@ jobs:
293293 with :
294294 python-version : ${{ matrix.python-version }}
295295
296- - name : Set up Java 11
296+ - name : Set up Java 17
297297 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
298298 with :
299299 distribution : ' temurin'
300- java-version : ' 11 '
300+ java-version : ' 17 '
301301
302302 - name : Load cached Poetry installation
303303 id : cached-poetry
@@ -322,6 +322,10 @@ jobs:
322322 path : .venv
323323 key : venv-v2-${{ github.event.pull_request.head.repo.full_name || github.repository }}-py${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
324324
325+ - name : Add venv to PATH
326+ if : steps.cache-deps.outputs.cache-hit == 'true'
327+ run : echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
328+
325329 - name : Install dependencies
326330 if : steps.cache-deps.outputs.cache-hit != 'true'
327331 run : poetry install --no-interaction --no-root --with dev
@@ -363,6 +367,14 @@ jobs:
363367 echo "Warning: No coverage file generated"
364368 fi
365369
370+ - name : Per-version coverage summary
371+ if : steps.test-unit.outputs.coverage_generated == 'true'
372+ env :
373+ PYTHON_VERSION : ${{ matrix.python-version }}
374+ run : |
375+ echo "## Python ${PYTHON_VERSION} Coverage" >> $GITHUB_STEP_SUMMARY
376+ poetry run coverage report --data-file=coverage/.coverage.${PYTHON_VERSION} --format=markdown >> $GITHUB_STEP_SUMMARY
377+
366378 - name : Upload test results to Codecov (these are results not coverage reports)
367379 if : ${{ !cancelled() }}
368380 uses : codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1
@@ -378,13 +390,6 @@ jobs:
378390 files : ./coverage/coverage-${{ matrix.python-version }}.xml
379391 fail_ci_if_error : ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}
380392
381- - name : Per-version coverage summary
382- if : steps.test-unit.outputs.coverage_generated == 'true'
383- env :
384- PYTHON_VERSION : ${{ matrix.python-version }}
385- run : |
386- echo "## Python ${PYTHON_VERSION} Coverage" >> $GITHUB_STEP_SUMMARY
387- poetry run coverage report --data-file=coverage/.coverage.${PYTHON_VERSION} --format=markdown >> $GITHUB_STEP_SUMMARY
388393 audit-prod :
389394 name : Audit - Production
390395 runs-on : ubuntu-latest
0 commit comments