chore(ci): update DJANGO_SETTINGS_MODULE in CI workflow for ssgd project
This commit is contained in:
1 parent
e78841631c
commit
27ca456212
1 file changed
+10
-4
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
name: Django CI
|
name: Django CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -31,9 +32,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install uv
|
- name: Install uv
|
||||||
uses: astral-sh/setup-uv@v4
|
uses: astral-sh/setup-uv@v4
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +62,7 @@ python-version: ${{ matrix.python-version }}
|
|||||||
|
|
||||||
- name: Run Django tests
|
- name: Run Django tests
|
||||||
env:
|
env:
|
||||||
DJANGO_SETTINGS_MODULE: config.settings.development
|
DJANGO_SETTINGS_MODULE: ssgd.settings.development
|
||||||
SECRET_KEY: test-secret-key-for-ci
|
SECRET_KEY: test-secret-key-for-ci
|
||||||
ALLOWED_HOSTS: localhost
|
ALLOWED_HOSTS: localhost
|
||||||
DB_NAME: test_db
|
DB_NAME: test_db
|
||||||
@@ -74,7 +76,7 @@ python-version: ${{ matrix.python-version }}
|
|||||||
|
|
||||||
- name: Check migrations
|
- name: Check migrations
|
||||||
env:
|
env:
|
||||||
DJANGO_SETTINGS_MODULE: config.settings.development
|
DJANGO_SETTINGS_MODULE: ssgd.settings.development
|
||||||
SECRET_KEY: test-secret-key-for-ci
|
SECRET_KEY: test-secret-key-for-ci
|
||||||
ALLOWED_HOSTS: localhost
|
ALLOWED_HOSTS: localhost
|
||||||
DB_NAME: test_db
|
DB_NAME: test_db
|
||||||
@@ -104,4 +106,8 @@ python-version: ${{ matrix.python-version }}
|
|||||||
run: uv sync
|
run: uv sync
|
||||||
|
|
||||||
- name: Run security check
|
- name: Run security check
|
||||||
|
env:
|
||||||
|
DJANGO_SETTINGS_MODULE: ssgd.settings.development
|
||||||
|
SECRET_KEY: test-secret-key-for-ci
|
||||||
|
ALLOWED_HOSTS: localhost
|
||||||
run: uv run python manage.py check --deploy
|
run: uv run python manage.py check --deploy
|
||||||
Reference in new issue
Block a user