Skip to content

Commit 1241d2a

Browse files
committed
Fixed github actions for deployment tests
1 parent 77d4c7a commit 1241d2a

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,34 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Set up Python
16-
uses: actions/setup-python@v4
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v4
1717
with:
18-
python-version: '3.10'
18+
enable-cache: true
19+
20+
- name: Set up Python
21+
run: uv python install 3.10
1922

2023
- name: Install dependencies
2124
run: |
2225
cd backend
23-
pip install -r requirements.txt || pip install -e .
26+
uv sync
2427
2528
- name: Run tests
29+
env:
30+
PROJECT_NAME: Test Project
31+
POSTGRES_SERVER: localhost
32+
POSTGRES_PORT: 5432
33+
POSTGRES_USER: postgres
34+
POSTGRES_PASSWORD: postgres
35+
POSTGRES_DB: test_db
36+
SECRET_KEY: test-secret-key-for-testing
37+
FIRST_SUPERUSER: [email protected]
38+
FIRST_SUPERUSER_PASSWORD: testpassword
39+
ENVIRONMENT: local
2640
run: |
2741
cd backend
28-
python -m pytest tests/ -v
42+
uv run pytest tests/ -v
2943
3044
deploy:
3145
needs: test

0 commit comments

Comments
 (0)