File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments