diff --git a/.github/workflows/coverage-workflow.yml b/.github/workflows/coverage-workflow.yml index 217a0a4..a797223 100644 --- a/.github/workflows/coverage-workflow.yml +++ b/.github/workflows/coverage-workflow.yml @@ -19,19 +19,17 @@ jobs: with: python-version: 3.9 - - name: Install dependencies + - name: Build Docker image for tests + working-directory: backend run: | - python -m pip install --upgrade pip - pip install -r backend/requirements.txt + docker build -t coverage-test -f tests/Dockerfile.test . - - name: Run tests with coverage - working-directory: tests + - name: Run tests in Docker container run: | - docker build -t coverage-test -f Dockerfile.test . docker run coverage-test - name: Upload coverage results uses: actions/upload-artifact@v3 with: name: coverage-results - path: tests/coverage.xml + path: backend/tests/coverage.xml