Skip to content

Commit cd6627d

Browse files
committed
Update cli_test.yaml
1 parent c12ecc5 commit cd6627d

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/cli_test.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ on: [push]
55
jobs:
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
@@ -17,9 +31,9 @@ jobs:
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

0 commit comments

Comments
 (0)