diff --git a/.github/workflows/python-uv-ci.yml b/.github/workflows/python-uv-ci.yml index 19475e2..d59609a 100644 --- a/.github/workflows/python-uv-ci.yml +++ b/.github/workflows/python-uv-ci.yml @@ -127,6 +127,14 @@ jobs: if: ${{ inputs.typecheck_command != '' }} run: ${{ inputs.typecheck_command }} + - name: Cleanup existing database containers + if: ${{ inputs.enable_db }} + run: | + existing_ids="$(docker ps -aq --filter "name=^ci-postgres")" + if [ -n "$existing_ids" ]; then + docker rm -f $existing_ids >/dev/null 2>&1 || true + fi + - name: Start database if: ${{ inputs.enable_db }} run: |