Skip to content

Commit

Permalink
try doing uninstall after test, and looking at docker/podman images b…
Browse files Browse the repository at this point in the history
…efore and after

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jun 11, 2021
1 parent 67517dc commit e8b4ca8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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: |
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions shpc/main/client.py
Expand Up @@ -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):
Expand Down

0 comments on commit e8b4ca8

Please sign in to comment.