Skip to content

Conversation

@qiuethan
Copy link
Contributor

Summary

This PR fixes the backend CI pipeline by injecting the SECRET_KEY environment variable into the migration and test steps. Django requires this key to start, and its absence was causing the pipeline to fail.

Changes

  • Updated .github/workflows/backend-ci.yml:
    • Added SECRET_KEY: ${{ secrets.SECRET_KEY }} to the "Run migrations" step.
    • Added SECRET_KEY: ${{ secrets.SECRET_KEY }} to the "Run tests with pytest" step.

How to Test

  1. Push these changes to a branch.
  2. Navigate to the "Actions" tab in the GitHub repository.
  3. Verify that the "Backend CI" workflow runs and completes the "Run migrations" and "Run tests with pytest" steps successfully.

Checklist

  • Tests added or updated (CI configuration updated)
  • CI passes (lint, tests, build)

@qiuethan qiuethan self-assigned this Dec 17, 2025
@qiuethan qiuethan requested a review from vivjd December 17, 2025 00:48
Copy link
Contributor

@vivjd vivjd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thankssss

@qiuethan qiuethan merged commit 9fa0d56 into main Dec 17, 2025
1 check passed
@qiuethan qiuethan deleted the fix-backend-pipeline-secret-key branch December 17, 2025 00:50
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.

3 participants