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 e8f37df
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -77,6 +77,14 @@ jobs:
printf "\n\shpc test ============================================\n"
shpc test python:3.9.5-alpine
if [ "${{ matrix.container_tech }}" == "podman" ]; then
printf "Podman images before install\n"
podman images
elif [ "${{ matrix.container_tech }}" == "docker" ]; then
printf "Docker images before install\n"
docker images
done
shpc install python:3.9.5-alpine
module use ./modules
Expand All @@ -101,6 +109,14 @@ jobs:
grep --quiet 'Python 3.9.5' test_output
rm test_output
shpc uninstall --force python:3.9.5-alpine
if [ "${{ matrix.container_tech }}" == "podman" ]; then
printf "Podman images after uninstall\n"
podman images
elif [ "${{ matrix.container_tech }}" == "docker" ]; then
printf "Docker images after uninstall\n"
docker images
done
- name: Run python module tests (tcsh)
shell: tcsh -e {0}
Expand All @@ -120,6 +136,14 @@ jobs:
shpc config set module_sys:${{ matrix.module }}
shpc config set enable_tty:false
if [ "${{ matrix.container_tech }}" == "podman" ]; then
printf "Podman images before install\n"
podman images
elif [ "${{ matrix.container_tech }}" == "docker" ]; then
printf "Docker images before install\n"
docker images
done
shpc install python:3.9.5-alpine
module use ./modules
Expand All @@ -144,3 +168,12 @@ jobs:
grep --quiet 'Python 3.9.5' test_output
rm test_output
shpc uninstall --force python:3.9.5-alpine
if [ "${{ matrix.container_tech }}" == "podman" ]; then
printf "Podman images after uninstall\n"
podman images
elif [ "${{ matrix.container_tech }}" == "docker" ]; then
printf "Docker images after uninstall\n"
docker images
done
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 e8f37df

Please sign in to comment.