From 7440a9a9ef3d11f4241bbddd459ddf35d111d0aa Mon Sep 17 00:00:00 2001 From: ducdetronquito Date: Fri, 27 Sep 2024 13:02:25 +0200 Subject: [PATCH] fix(run-pytest): share code coverage result file between the docker container and the ci host machine --- .github/workflows/run-pytest.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml index 0362439..e1bf5c8 100644 --- a/.github/workflows/run-pytest.yml +++ b/.github/workflows/run-pytest.yml @@ -39,6 +39,8 @@ jobs: env: DJANGO_SETTINGS_MODULE: ${{ inputs.env_django_settings_module }} GIT_DISCOVERY_ACROSS_FILESYSTEM: 1 + volumes: + - ./.coverage:${inputs.workdir}/.coverage services: postgres: image: postgres:16 @@ -75,4 +77,4 @@ jobs: with: GITHUB_TOKEN: ${{ github.token }} GITHUB_PR_RUN_ID: ${{ github.event.workflow_run.id }} - COVERAGE_PATH: ${{ inputs.workdir }} + COVERAGE_PATH: ./