We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0e37f0 commit cc29969Copy full SHA for cc29969
1 file changed
.github/workflows/continuous_integration.yml
@@ -68,8 +68,20 @@ jobs:
68
uv run pre-commit run --all-files
69
working-directory: backend
70
71
- - name: Making env file for testing
72
- run: cp .env.test.example .env.test
+ - name: Load environment variables for testing
+ run: cp .env.test.example .env.test # Copy the test env file
73
+ working-directory: backend
74
+
75
+ - name: Set environment for test DB
76
+ run: |
77
+ echo "SQLALCHEMY_DATABASE_URI=postgresql://postgres:postgres@localhost:5433/ai_platform_test" >> .env.test
78
79
80
+ - name: Activate virtual environment and run Alembic migrations for test DB
81
82
+ source .venv/bin/activate
83
+ alembic upgrade head
84
85
86
- name: Run tests
87
run: uv run bash scripts/tests-start.sh "Coverage for ${{ github.sha }}"
0 commit comments