diff --git a/tests/test_env_var.py b/tests/test_env_var.py index eaeb94e..66f430f 100644 --- a/tests/test_env_var.py +++ b/tests/test_env_var.py @@ -54,6 +54,10 @@ def wrapper(*args, **kwargs): return decorator +@pytest.mark.skipif( + os.getenv("GITHUB_ACTIONS") == "true", + reason="Github Actions doesn't support short names anymore.", +) def test_expand_path(): # Generate a short name path. This method needs a file that actually # exists on disk, and test_env_var.py is long enough to get ~'ed diff --git a/tox.ini b/tox.ini index ca80ee8..2bd642f 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,9 @@ skipsdist = True changedir = {toxinidir} # This env var is used to enable registry write tests by developers and the # gitlab action runner. -passenv = CASEMENT_TEST_WRITE_ENV +passenv = + CASEMENT_TEST_WRITE_ENV + GITHUB_ACTIONS setenv = {py27}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command skip_install = True @@ -27,6 +29,7 @@ commands = basepython = python3 deps = coverage + setuptools commands = # Ensure the version.py file is created python setup.py egg_info @@ -37,6 +40,7 @@ commands = basepython = python3 deps = coverage + setuptools commands = coverage combine coverage report