Skip to content

Conversation

@C4ptainCrunch
Copy link
Contributor

Summary

  • Configures GitHub Actions to run with DEBUG=False instead of defaulting to DEBUG=True
  • Sets SECRET_KEY environment variable (required when DEBUG is False)

Problem

Issue #327 reported that GitHub Actions were running with DEBUG=True. While pytest was correctly using test_settings.py (which sets DEBUG=False), other Django management commands (check, makemigrations, collectstatic) were using the default settings and running with DEBUG=True.

Solution

Added environment variables to the build job in the GitHub Actions workflow:

  • DEBUG: "False" - Forces all commands to run in production mode
  • SECRET_KEY: "github-actions-secret-key" - Required by Django when DEBUG is False

Test plan

  • Verify the workflow file syntax is correct
  • Check that the next GitHub Actions run shows DEBUG=False in all commands

🤖 Generated with Claude Code

Configure the build job to run with DEBUG=False instead of the default
DEBUG=True. This ensures all Django management commands (check,
makemigrations, collectstatic) run in production mode during CI.

Also sets SECRET_KEY which is required when DEBUG=False.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@C4ptainCrunch
Copy link
Contributor Author

Written by Claude, but reviewed by me, including test results

@C4ptainCrunch C4ptainCrunch merged commit 14cc2f5 into main Dec 24, 2025
2 checks passed
@C4ptainCrunch C4ptainCrunch deleted the fix-github-actions-debug branch December 24, 2025 22:44
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.

2 participants