Skip to content

Commit e8f37d1

Browse files
committed
Simplify the test on Docker workflow
Signed-off-by: tdruez <[email protected]>
1 parent 4a9ff8c commit e8f37d1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/run-unit-tests-docker.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-24.04
8+
env:
9+
FROM_DOCKER_IMAGE: "1"
810

911
steps:
1012
- name: Checkout code
@@ -13,8 +15,5 @@ jobs:
1315
- name: Generate the .env file and the SECRET_KEY
1416
run: make envfile
1517

16-
- name: Build and run the Docker Compose stack
17-
run: docker compose up -d
18-
1918
- name: Run tests
20-
run: docker compose run -e FROM_DOCKER_IMAGE=1 web python ./manage.py test --verbosity=2 --noinput
19+
run: docker compose run web python ./manage.py test --verbosity=2 --noinput

0 commit comments

Comments
 (0)