diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 6727d3105..3de7c1ee2 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -27,5 +27,5 @@ jobs: source activate shpc which shpc cd shpc/tests - ln -s ~/.docker/run/docker.sock /var/run/docker.sock + export GITHUB_CI=yes pytest -sxv test_*.py diff --git a/shpc/tests/test_container.py b/shpc/tests/test_container.py index cf513d9dc..06a8799bd 100644 --- a/shpc/tests/test_container.py +++ b/shpc/tests/test_container.py @@ -13,6 +13,7 @@ here = os.path.dirname(os.path.abspath(__file__)) root = os.path.dirname(here) +ci = os.environ.get("GITHUB_CI") def test_pull_gh(tmp_path): """ @@ -53,6 +54,7 @@ def test_podman(tmp_path): assert not cli.exists(result) +@pytest.mark.skipif(ci is not None, reason="GitHub actions docker socket not working") def test_docker(tmp_path): """ Test a singularity container command