Skip to content

fix(ci): Correct Codecov reporting and file discovery #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Run tests and generate coverage report 🛡️
run: >
docker compose exec -T web sh -c
"cd promo_code && coverage run --rcfile=.coveragerc manage.py test && coverage xml"
"coverage run --rcfile=promo_code/.coveragerc --source='.' promo_code/manage.py test business core user && coverage xml -o promo_code/coverage.xml"

- name: Copy coverage report from container 📂
run: docker compose cp web:/usr/src/app/promo_code/coverage.xml ./coverage.xml
Expand All @@ -75,4 +75,5 @@ jobs:
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: promo_code
fail_ci_if_error: true