diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 196d780..68281a8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,9 @@ jobs: with: enable-cache: true cache-dependency-glob: "uv.lock" + # Note: We added this `version: "latest"` to work around the following bug in this GHA: + # https://github.com/astral-sh/setup-uv/issues/489 + version: "latest" - name: Install the project run: uv sync --all-extras --dev @@ -32,10 +35,14 @@ jobs: - name: Run tests locally run: uv run pytest tests - - name: Run tests in container environment - uses: hoverkraft-tech/compose-action@v2.2.0 - env: - ACTIONS_RUNNER_DEBUG: true - with: - compose-file: "docker-compose.yml" - services: "test" + # Note: This spins up containers running the default services. + - name: Spin up Docker Compose stack in background + run: docker compose up --detach + + # Note: This spins up the "test" container. + - name: Spin up `test` container + run: docker compose up test + + # Note: This spins everything down. + - name: Spin down Docker Compose stack + run: docker compose down diff --git a/docker-compose.yml b/docker-compose.yml index febf6bb..f93d5fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,7 +20,7 @@ services: - ".:/app" mongo: - image: mongo:8.0.10 + image: mongo:8.0.11 ports: # The environment variable can be specified either via an `.env` file, # or by defining it when invoking `docker compose`, like this: