Skip to content

Commit

Permalink
tests: fix failing integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Nov 7, 2024
1 parent a7e27d0 commit 458a046
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,15 @@ jobs:
- name: Build Containers
run: |
poetry run python tools/image_builder \
--dockerfiles-only \
--disable-cache-mounts \
--service celery \
--service redis \
--service test
- name: Start the test container
run: |
docker compose -f docker-compose.test.yml up -d
docker compose -f docker-compose.test.yml up -d --build
- name: Run the unit tests inside the container
run: |
Expand Down
4 changes: 4 additions & 0 deletions bin/prepare_test_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ EOF
if [ "$START_SERVER" = true ]; then
cd /usr/src/app

npm install && \
npm run coffee-build && \
npm run sass-build

./manage.py makemigrations
./manage.py migrate --fake-initial
./manage.py runserver 127.0.0.1:8080 &
Expand Down
2 changes: 2 additions & 0 deletions tools/image_builder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ def build_image(
'libcups2',
'libxcomposite1',
'libxdamage1',
'nodejs',
'npm',
],
'chrome_dl_url': chrome_dl_url,
'chromedriver_dl_url': chromedriver_dl_url,
Expand Down

0 comments on commit 458a046

Please sign in to comment.