Skip to content

Commit bf5becd

Browse files
committed
Update the workflow for new docker compose
1 parent 175326f commit bf5becd

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,21 @@ jobs:
1414
compare-php:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: actions/setup-python@v4
17+
- uses: actions/checkout@v6 # This repository
18+
- uses: actions/setup-python@v6
1919
with:
2020
python-version: 3.x
2121

22-
# A naive `docker compose up` would first build the `python-api` container and then
23-
# start all services, which kickstarts Elastic Search and building indices.
24-
# But since those two steps are independent, we can parallelize them to save time.
25-
- run: |
26-
{ docker compose build python-api; docker compose up -d python-api; } &
27-
docker compose up -d --wait php-api
22+
- run: docker compose --profile "python" --profile "php" up -d --wait
2823
- run: docker container ls && docker image ls
2924
- run: docker exec python-api python -m pytest -xv -m "php"
3025
python:
3126
runs-on: ubuntu-latest
3227
steps:
33-
- uses: actions/checkout@v4
34-
- uses: actions/setup-python@v4
28+
- uses: actions/checkout@v6
29+
- uses: actions/setup-python@v6
3530
with:
3631
python-version: 3.x
37-
- run: docker compose up -d --wait database python-api
32+
- run: docker compose --profile "python" up -d --wait database python-api
3833
- run: docker container ls
3934
- run: docker exec python-api python -m pytest -xv -m "not php"

0 commit comments

Comments
 (0)