File tree 1 file changed +26
-9
lines changed
1 file changed +26
-9
lines changed Original file line number Diff line number Diff line change 10
10
IMAGE_NAME : ${{ github.repository }}
11
11
12
12
jobs :
13
- ci :
13
+ prepare :
14
14
runs-on : ubuntu-latest
15
- permissions :
16
- contents : read
17
- packages : write
18
15
steps :
19
16
- uses : actions/checkout@v4
20
17
- uses : docker/setup-buildx-action@v3
@@ -28,11 +25,31 @@ jobs:
28
25
cache-from : type=gha
29
26
cache-to : type=gha,mode=max
30
27
push : false
31
- - name : run pytest
32
- uses : addnab/docker-run-action@v3
33
- with :
34
- image : teufa:ci
35
- run : pytest
28
+
29
+ tests :
30
+ runs-on : ubuntu-latest
31
+ container : teufa:ci
32
+ services :
33
+ postgres :
34
+ image : postgres
35
+ env :
36
+ POSTGRES_PASSWORD : postgres
37
+ options : >-
38
+ --health-cmd pg_isready
39
+ --health-interval 10s
40
+ --health-timeout 5s
41
+ --health-retries 5
42
+ ports :
43
+ - 5432:5432
44
+ steps :
45
+ - run : pytest
46
+
47
+ build-push :
48
+ runs-on : ubuntu-latest
49
+ permissions :
50
+ contents : read
51
+ packages : write
52
+ steps :
36
53
- name : log in to ghcr.io
37
54
uses : docker/login-action@v3
38
55
with :
You can’t perform that action at this time.
0 commit comments