From 64f3b844b8aef39591c7966c1f9d25dfd3d85b8f Mon Sep 17 00:00:00 2001 From: Kuba Mazurek Date: Thu, 8 Apr 2021 12:51:40 +0200 Subject: [PATCH 1/2] Add Docker cleanup steps before and after a test --- .github/workflows/integration.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 66d26fd91..d4454b210 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -32,6 +32,10 @@ jobs: - name: Install dependencies run: poetry install --no-root + - name: Remove Docker containers + continue-on-error: true + run: docker rm -f $(docker ps -a -q) + - name: Log in to GitHub Docker repository run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{github.actor}} --password-stdin @@ -59,3 +63,7 @@ jobs: # In future we'll be able to use the `--all` flag here to remove envs for # all Python versions (https://github.com/python-poetry/poetry/issues/3208). run: poetry env remove python3.8 + + - name: Remove Docker containers + continue-on-error: true + run: docker rm -f $(docker ps -a -q) From ff18ce189024b239d8a5f6dcb929f44be4a23af4 Mon Sep 17 00:00:00 2001 From: Kuba Mazurek Date: Fri, 9 Apr 2021 14:38:37 +0200 Subject: [PATCH 2/2] Only perform cleanup before a test run --- .github/workflows/integration.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index d4454b210..4e49ab960 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -63,7 +63,3 @@ jobs: # In future we'll be able to use the `--all` flag here to remove envs for # all Python versions (https://github.com/python-poetry/poetry/issues/3208). run: poetry env remove python3.8 - - - name: Remove Docker containers - continue-on-error: true - run: docker rm -f $(docker ps -a -q)