Skip to content

Commit 5ca9467

Browse files
committed
Fix STORAGES test setting.
1 parent 9b13533 commit 5ca9467

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/hypha-ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,18 @@ jobs:
7474
uv venv
7575
uv pip install -r requirements/dev.txt -r requirements/translate.txt
7676
77-
- name: Run django collectstatic
78-
run: |
79-
.venv/bin/python manage.py collectstatic --noinput --no-post-process --verbosity=1
80-
8177
- name: Check Django migrations
8278
if: matrix.group == 1
8379
run: |
8480
.venv/bin/python manage.py makemigrations --dry-run --verbosity=3
8581
.venv/bin/python manage.py makemigrations --check
8682
87-
- name: Check Django checks
83+
- name: Run django collectstatic
84+
if: matrix.group == 2
85+
run: |
86+
.venv/bin/python manage.py collectstatic --noinput --no-post-process --verbosity=1
87+
88+
- name: Check Django Setup
8889
if: matrix.group == 3
8990
run: |
9091
.venv/bin/python manage.py check

hypha/settings/test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
TRANSITION_AFTER_REVIEWS = 2
1818
TRANSITION_AFTER_ASSIGNED = True
1919

20-
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
20+
STORAGES["staticfiles"] = {
21+
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
22+
}
2123

2224
PASSWORD_HASHERS = [
2325
"django.contrib.auth.hashers.MD5PasswordHasher",

0 commit comments

Comments
 (0)