Skip to content

Commit 6a36f68

Browse files
committed
ci: add concurrency limitation on tests workflow to avoid duplicates
1 parent 30ec006 commit 6a36f68

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
tests:
1010
name: Execute unit tests
11+
concurrency: ci-${{ github.ref }}
1112
strategy:
1213
matrix:
1314
python-version: [3.12]

docker-compose.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
retries: 5
3030

3131
migrate:
32-
image: camptocamp/geoshop-api
32+
image: geoshop-api
3333
build:
3434
context: .
3535
dockerfile: Dockerfile
@@ -40,18 +40,18 @@ services:
4040
environment:
4141
PGHOST: "db"
4242
command: >
43-
bash -c "
44-
python3 manage.py migrate &&
45-
python3 manage.py collectstatic --noinput &&
46-
python3 manage.py compilemessages --locale=fr &&
47-
python3 manage.py fixturize"
43+
bash -c "
44+
python3 manage.py migrate &&
45+
python3 manage.py collectstatic --noinput &&
46+
python3 manage.py compilemessages --locale=fr &&
47+
python3 manage.py fixturize"
4848
volumes:
4949
- "static-files:/app/geoshop_back/static:rw"
5050
networks:
5151
- geoshop
5252

5353
api:
54-
image: camptocamp/geoshop-api
54+
image: geoshop-api
5555
depends_on:
5656
db:
5757
condition: service_healthy

0 commit comments

Comments
 (0)