Skip to content

Commit c825520

Browse files
refactor(ci): Simplify and correct coverage command
This commit refactors the test and coverage generation step in the CI workflow. - The `cd` command is removed, and paths are handled directly in the `coverage` command for better clarity. - The `--source` option is added to ensure coverage is measured for the intended `business`, `core`, and `user` apps.
1 parent ef39a65 commit c825520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- name: Run tests and generate coverage report 🛡️
6767
run: >
6868
docker compose exec -T web sh -c
69-
"cd promo_code && coverage run --rcfile=.coveragerc manage.py test && coverage xml"
69+
"coverage run --source='.' promo_code/manage.py test business core user && coverage xml -o promo_code/coverage.xml"
7070
7171
- name: Copy coverage report from container 📂
7272
run: docker compose cp web:/usr/src/app/promo_code/coverage.xml ./coverage.xml

0 commit comments

Comments
 (0)