3939 timeout-minutes : 5
4040 outputs :
4141 frontend-changed : ${{ steps.path-changes.outputs.frontend == 'true' }}
42- notifications-changed : ${{ steps.path-changes.outputs.notifications == 'true' }}
4342
4443 services :
4544 postgres :
7675 - 'manage_breast_screening/participants/**'
7776 - 'manage_breast_screening/static/**'
7877 - 'manage_breast_screening/tests/system/**'
79- notifications:
80- - 'manage_breast_screening/notifications/**'
8178
8279 - name : Set up uv
8380 uses : astral-sh/setup-uv@v7
@@ -101,98 +98,6 @@ jobs:
10198 DATABASE_USER : postgres
10299 DATABASE_HOST : localhost
103100
104- notifications-integration-test :
105- needs : test
106- if : github.ref == 'refs/heads/main' || needs.test.outputs.notifications-changed == 'true'
107- name : ' Notifications Integration Tests'
108- runs-on : ubuntu-latest
109- timeout-minutes : 5
110-
111- services :
112- postgres :
113- image : postgres:17.4-alpine3.21
114- ports :
115- - 5432:5432
116- env :
117- POSTGRES_PASSWORD : postgres
118- options : >-
119- --health-cmd pg_isready
120- --health-interval 10s
121- --health-timeout 5s
122- --health-retries 5
123-
124- steps :
125- - name : ' Checkout code'
126- uses : actions/checkout@v6
127-
128- - name : Set up uv
129- uses : astral-sh/setup-uv@v7
130- with :
131- enable-cache : true
132- cache-dependency-glob : ' **/uv.lock'
133-
134- - name : Set up Python
135- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
136- with :
137- python-version : ' ${{inputs.python_version}}'
138-
139- - name : Install dependencies
140- run : make dependencies
141-
142- - name : ' Run notifications integration test suite'
143- run : make test-integration
144- env :
145- DATABASE_NAME : postgres
146- DATABASE_PASSWORD : postgres
147- DATABASE_USER : postgres
148- DATABASE_HOST : localhost
149-
150- notifications-end-to-end-test :
151- needs : test
152- if : github.ref == 'refs/heads/main' || needs.test.outputs.notifications-changed == 'true'
153- name : ' Notifications End to End Tests'
154- runs-on : ubuntu-latest
155- timeout-minutes : 5
156-
157- services :
158- postgres :
159- image : postgres:17.4-alpine3.21
160- ports :
161- - 5432:5432
162- env :
163- POSTGRES_PASSWORD : postgres
164- options : >-
165- --health-cmd pg_isready
166- --health-interval 10s
167- --health-timeout 5s
168- --health-retries 5
169-
170- steps :
171- - name : ' Checkout code'
172- uses : actions/checkout@v6
173-
174- - name : Set up uv
175- uses : astral-sh/setup-uv@v7
176- with :
177- enable-cache : true
178- cache-dependency-glob : ' **/uv.lock'
179-
180- - name : Set up Python
181- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
182- with :
183- python-version : ' ${{inputs.python_version}}'
184-
185- - name : Install dependencies
186- run : make dependencies
187-
188- - name : ' Run notifications end to end test suite'
189- run : make test-end-to-end
190- env :
191- DATABASE_NAME : postgres
192- DATABASE_PASSWORD : postgres
193- DATABASE_USER : postgres
194- DATABASE_HOST : localhost
195-
196101 frontend-integration-test :
197102 needs : test
198103 if : github.ref == 'refs/heads/main' || needs.test.outputs.frontend-changed == 'true'
0 commit comments