Skip to content

Commit

Permalink
ci: Fix docker-compose missing in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
asulis committed Nov 13, 2024
1 parent d53d53a commit 858ebb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ jobs:
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Run compose
run: |
cd $GITHUB_WORKSPACE/compose
docker compose -f docker-compose-integration-tests.yml up -d
docker-compose -f docker-compose-integration-tests.yml up -d
- name: Prepare python environment
run: |
cd $GITHUB_WORKSPACE
Expand Down
4 changes: 2 additions & 2 deletions tests/deployment/standalone_service_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

def run_compose(compose_file):
"""Starts a Docker Compose file."""
subprocess.run(["docker compose", "-f", compose_file, "up", "-d"], check=True)
subprocess.run(["docker-compose", "-f", compose_file, "up", "-d"], check=True)


def stop_compose(compose_file):
"""Stops a Docker Compose file."""
subprocess.run(["docker compose", "-f", compose_file, "down"], check=True)
subprocess.run(["docker-compose", "-f", compose_file, "down"], check=True)


def wait_for_service(url):
Expand Down

0 comments on commit 858ebb2

Please sign in to comment.