Skip to content

Commit

Permalink
ci: add concurrency limitation on tests workflow to avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Sep 10, 2024
1 parent 89a3d86 commit 7d8e9e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
tests:
name: Execute unit tests
concurrency: ci-${{ github.ref }}
strategy:
matrix:
python-version: [3.12]
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
retries: 5

migrate:
image: camptocamp/geoshop-api
image: geoshop-api
build:
context: .
dockerfile: Dockerfile
Expand All @@ -40,18 +40,18 @@ services:
environment:
PGHOST: "db"
command: >
bash -c "
python3 manage.py migrate &&
python3 manage.py collectstatic --noinput &&
python3 manage.py compilemessages --locale=fr &&
python3 manage.py fixturize"
bash -c "
python3 manage.py migrate &&
python3 manage.py collectstatic --noinput &&
python3 manage.py compilemessages --locale=fr &&
python3 manage.py fixturize"
volumes:
- "static-files:/app/geoshop_back/static:rw"
networks:
- geoshop

api:
image: camptocamp/geoshop-api
image: geoshop-api
depends_on:
db:
condition: service_healthy
Expand Down

0 comments on commit 7d8e9e0

Please sign in to comment.