Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test github action for collectstatic #1836

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ontowhee
Copy link
Contributor

Fix #1831

WIP. This is probably not the right approach. It adds the collectstatic command to tox, although tox is running under development environment and we are trying to test production.

To Do

  • Remove jquery.min.map file, then run collectstatic to observe the ValueError.
  • Try adding a new step in github actions to .github/workflows/tests.yml, something along the lines of:
            - name: Run collectstatic for production
              run: |
                pip install -r djangoproject/requirements/prod.txt
                python manage.py collectstatic --settings=djangoproject.settings.prod

What environment variables need to be set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a test (or a github action) to catch static files issues early
1 participant