Skip to content

Commit

Permalink
ci: set test env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicham committed Dec 11, 2024
1 parent 7b83bd3 commit c5306ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ jobs:
- name: Install dependencies
run: uv sync

- name: Set up Django environment variables and config
- name: Set up log dir and DB config
run: |
cp .conf/.test.env admin_cohort/.env
mkdir log
echo "DATABASE_URL=postgres://portail_dev_limited_rw:portail_psswd@localhost:5432/portail_test" >> $GITHUB_ENV
Expand All @@ -85,6 +84,7 @@ jobs:

- name: Run tests
run: |
cp .conf/.test.env admin_cohort/.env
uv run coverage run --source='.' --omit="*/test*","*/migrations/*" manage.py test
uv run coverage xml --omit="*/test*","*/migrations/*" -o coverage.xml
- name: Upload coverage report
Expand Down

0 comments on commit c5306ea

Please sign in to comment.