File tree Expand file tree Collapse file tree 1 file changed +26
-2
lines changed
Expand file tree Collapse file tree 1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,30 @@ jobs:
167167 run : pylint -v .
168168
169169 test-unit :
170+ runs-on : ubuntu-24.04
171+ needs : merge
172+ env :
173+ COMPOSE_FILE : docker-compose.yml:docker-compose.ci.yml
174+ DOCKER_APP_IMAGE : ${{ needs.merge.outputs.dev-image }}
175+ steps :
176+ - name : Checkout code
177+ uses : actions/checkout@v4
178+
179+ - name : Set up Docker Compose
180+ uses : docker/setup-compose-action@v1
181+
182+ - name : Login to GitHub Container Registry
183+ uses : docker/login-action@v3
184+ with :
185+ registry : ghcr.io
186+ username : ${{ github.actor }}
187+ password : ${{ secrets.GITHUB_TOKEN }}
188+
189+ - name : Run unittest
190+ run : |
191+ docker compose run --rm --no-deps app python -m unittest -v
192+
193+ test-startup :
170194 runs-on : ubuntu-24.04
171195 needs : merge
172196 env :
@@ -188,8 +212,7 @@ jobs:
188212
189213 - name : Run the test script
190214 run : |
191- docker compose up --detach --wait
192- docker compose run --rm --no-deps app python -m unittest -v
215+ docker compose up --wait app db
193216
194217 push :
195218 runs-on : ubuntu-24.04
@@ -198,6 +221,7 @@ jobs:
198221 - test-mypy
199222 - test-pydoclint
200223 - test-pylint
224+ - test-startup
201225 - test-unit
202226 env :
203227 DOCKER_APP_IMAGE : ${{ needs.merge.outputs.app-image }}
You can’t perform that action at this time.
0 commit comments