Skip to content

Commit 6d4cc7b

Browse files
committed
Fixed ci.env variables loading for django-ci.yml.
1 parent 97a2ff1 commit 6d4cc7b

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/django-ci.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,20 @@ jobs:
3535
python-version: "3.11"
3636

3737
- name: Install dependencies
38-
run: |
39-
pip install -r requirements.txt
38+
run: pip install -r requirements.txt
4039

41-
- name: Load CI environment variables
40+
- name: Run migrations
41+
working-directory: src
4242
run: |
4343
set -o allexport
44-
source .env.ci
44+
source ../.env.ci
45+
python manage.py migrate
4546
set +o allexport
4647
47-
- name: Run migrations
48-
working-directory: src
49-
run: python manage.py migrate
50-
5148
- name: Run tests
5249
working-directory: src
53-
run: pytest
50+
run: |
51+
set -o allexport
52+
source ../.env.ci
53+
pytest
54+
set +o allexport

0 commit comments

Comments
 (0)