From e8b4ca81268b0c7616f37fac631facacf59f5270 Mon Sep 17 00:00:00 2001 From: vsoch Date: Thu, 10 Jun 2021 20:22:42 -0600 Subject: [PATCH] try doing uninstall after test, and looking at docker/podman images before and after Signed-off-by: vsoch --- .github/workflows/test.yml | 13 +++++++++++++ shpc/main/client.py | 1 + 2 files changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9df786c44..6d95b0310 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,6 +54,12 @@ jobs: source activate shpc pip install -e . + - name: Show ${{ matrix.container_tech }} images before install + if: (${{ matrix.container_tech == 'podman' }} || ${{matrix.container_tech == "docker"}}) + run: | + ${{ matrix.container_tech }} --version + ${{ matrix.container_tech }} images + - name: Run python module tests (bash) shell: bash run: | @@ -101,6 +107,7 @@ jobs: grep --quiet 'Python 3.9.5' test_output rm test_output shpc uninstall --force python:3.9.5-alpine + - name: Run python module tests (tcsh) shell: tcsh -e {0} @@ -144,3 +151,9 @@ jobs: grep --quiet 'Python 3.9.5' test_output rm test_output shpc uninstall --force python:3.9.5-alpine + + - name: Show ${{ matrix.container_tech }} images after install + if: (${{ matrix.container_tech == 'podman' }} || ${{matrix.container_tech == "docker"}}) + run: | + ${{ matrix.container_tech }} --version + ${{ matrix.container_tech }} images diff --git a/shpc/main/client.py b/shpc/main/client.py index cda45c384..6daf007c3 100644 --- a/shpc/main/client.py +++ b/shpc/main/client.py @@ -177,6 +177,7 @@ def cleanup(tmpdir): if stage: logger.info(tmpdir) else: + self.uninstall("%s:%s" % (module_name, tag), force=True) cleanup(tmpdir) def check(self, module_name):