Skip to content

Commit 228a85b

Browse files
committed
Run docker compose without custom network pool in CI
1 parent 00c0ff6 commit 228a85b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/actions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: MapSwipe Workers
22

33
on: [push]
44

5+
env:
6+
COMPOSE_FILE: docker-compose.yaml:docker-compose-ci.yaml
7+
58
jobs:
69
build:
710

@@ -77,6 +80,7 @@ jobs:
7780
POSTGRES_DB: postgres
7881
OSMCHA_API_KEY: ${{ secrets.OSMCHA_API_KEY }}
7982
DJANGO_SECRET_KEY: test-django-secret-key
83+
COMPOSE_FILE: ../docker-compose.yaml:../docker-compose-ci.yaml
8084
run: |
8185
docker compose run --rm mapswipe_workers_creation python -m unittest discover --verbose --start-directory tests/unittests/
8286
docker compose run --rm mapswipe_workers_creation bash -c 'pip install pytest && pytest -ra -v --durations=10 tests/integration/'

docker-compose-ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Quick hack to avoid on GH CI
2+
# Check .github/workflows/actions.yml for usages
3+
# Related error:
4+
# failed to create network python-mapswipe-workers_mapswipe_network:
5+
# Error response from daemon: Pool overlaps with other one on this address space
6+
networks:
7+
mapswipe_network:
8+
ipam: !reset null

0 commit comments

Comments
 (0)