File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,12 +13,27 @@ permissions:
1313 contents : read
1414
1515jobs :
16- build :
16+ test :
1717 runs-on : ubuntu-latest
1818
19+ services :
20+ postgres :
21+ image : postgres:18
22+ env :
23+ POSTGRES_DB : coursereview
24+ POSTGRES_USER : admin
25+ POSTGRES_PASSWORD : test
26+ ports :
27+ - 5432:5432
28+ options : >-
29+ --health-cmd pg_isready
30+ --health-interval 10s
31+ --health-timeout 5s
32+ --health-retries 5
33+
1934 steps :
2035 - uses : actions/checkout@v6
21-
36+
2237 - name : Install python
2338 uses : actions/setup-python@v6
2439 with :
@@ -28,10 +43,13 @@ jobs:
2843 uses : astral-sh/setup-uv@v7
2944 with :
3045 enable-cache : true
31-
46+ version : " 0.10.7"
47+
3248 - name : Install the project
3349 run : uv sync --group dev
34-
50+
3551 - name : Test with pytest
52+ env :
53+ DATABASE__URL : postgres://admin:test@localhost:5432/coursereview
3654 run : |
3755 uv run pytest
You can’t perform that action at this time.
0 commit comments