diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a91880..70f2158 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,3 +51,35 @@ jobs: - name: Run black run: poetry run black . + + - name: Save workspace + uses: actions/upload-artifact@v2 + with: + name: workspace + path: .venv + + checks: + runs-on: ubuntu-latest + needs: linter + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Download workspace + uses: actions/download-artifact@v2 + with: + name: workspace + path: .venv + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.12" + + - name: Configure Poetry + run: | + poetry config virtualenvs.in-project true + + - name: Collect static files + run: poetry run python manage.py collectstatic --noinput diff --git a/.gitignore b/.gitignore index 9352515..d2593a5 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,4 @@ node_modules/ /env3/ docker-compose.override.yml /docs/docs/_build/* +/demo/staticfiles/ diff --git a/demo/demo/settings.py b/demo/demo/settings.py index 74c338a..5a7c255 100644 --- a/demo/demo/settings.py +++ b/demo/demo/settings.py @@ -135,6 +135,8 @@ STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] +STATICFILES_STORAGE = "django.contrib.staticfiles.storage.ManifestStaticFilesStorage" +STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") # Default primary key field type # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field