Skip to content

Commit f5801cb

Browse files
committed
add postgres service
1 parent 8ca54f1 commit f5801cb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/python-package.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version: ["3.11", "3.12", "3.13"]
17+
services:
18+
postgres:
19+
image: postgres:17
20+
env:
21+
POSTGRES_PASSWORD: postgres
22+
options: >-
23+
--health-cmd pg_isready
24+
--health-interval 10s
25+
--health-timeout 5s
26+
--health-retries 5
27+
ports:
28+
- 5432:5432
1729
steps:
1830
- uses: actions/checkout@v4
1931
with:
@@ -33,6 +45,8 @@ jobs:
3345

3446
- name: Run tests
3547
run: uv run pytest
48+
env:
49+
ANYVLM_ANYVAR_TEST_STORAGE_URI: postgresql://postgres:postgres@localhost:5432/postgres
3650
lint:
3751
name: lint
3852
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)