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 <[email protected]>
  • Loading branch information
vsoch committed Jun 11, 2021
1 parent 67517dc commit 0576c04
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def cleanup(tmpdir):
if stage:
logger.info(tmpdir)
else:
self.uninstall("%s:%s" % (module_name, tag))
cleanup(tmpdir)

def check(self, module_name):
Expand Down

0 comments on commit 0576c04

Please sign in to comment.