Skip to content

Commit

Permalink
Update coverage-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima Ketan Chauhan authored and GitHub Enterprise committed Apr 2, 2025
1 parent 9912c53 commit ab02dcd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/coverage-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab02dcd

Please sign in to comment.