File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,20 @@ on: [push]
55jobs :
66 test :
77 runs-on : ubuntu-latest
8+ services :
9+ postgres :
10+ image : postgres:17.4-bookworm
11+ env :
12+ POSTGRES_PASSWORD : postgres
13+ POSTGRES_USER : postgres
14+ POSTGRES_DB : postgres
15+ ports :
16+ - 5432
17+ options : >-
18+ --health-cmd "pg_isready"
19+ --health-interval 10s
20+ --health-timeout 5s
21+ --health-retries 5
822 steps :
923 - uses : actions/checkout@v4
1024 - name : Install uv
1731 run : uv sync --all-extras --dev
1832 - name : Generate example project
1933 run : uv run -m fastapi_forge start --use-example --no-ui --yes
20- - name : Run
21- working-directory : ./game_zone
22- run : make up
2334 - name : Run tests
2435 working-directory : ./game_zone
25- run : make test
36+ env :
37+ GAME_ZONE_PG_HOST : localhost
38+ GAME_ZONE_PG_PORT : ${{ job.services.postgres.ports['5432'] }}
39+ run : uv run pytest ./tests -v -s
You can’t perform that action at this time.
0 commit comments