Skip to content

Commit f81fd5b

Browse files
heysamtexasclaude
andcommitted
fix: use direct environment variables in CI instead of file mounting
- Revert to simpler approach of passing env vars directly to Docker with -e flags - Change DATABASE_URL from PostgreSQL to SQLite for faster CI - Remove file mounting complexity that was causing env var loading issues - This matches the original working pattern but with SQLite instead of PostgreSQL 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent e08567e commit f81fd5b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
- name: Run Django tests
2323
run: |
2424
docker run --rm \
25-
-v $(pwd)/env.test:/env \
25+
-e DATABASE_URL=sqlite:///test.db \
26+
-e SECRET_KEY=test-secret-key-for-github-actions-only \
27+
-e DEBUG=True \
28+
-e BASE_URL=http://localhost:8000 \
29+
-e AWS_ACCESS_KEY_ID=test-access-key \
30+
-e AWS_SECRET_ACCESS_KEY=test-secret-key \
31+
-e AWS_STORAGE_BUCKET_NAME=testbucket \
32+
-e AWS_S3_REGION_NAME=us-east-1 \
33+
-e AWS_S3_ENDPOINT_URL=http://localhost:9000 \
34+
-e AWS_S3_USE_SSL=false \
35+
-e EMAIL_URL=smtp://localhost:1025 \
36+
-e DEFAULT_FROM_EMAIL=test@localhost \
2637
dri-test \
2738
python manage.py test

0 commit comments

Comments
 (0)