From 63bbb44638b22433f28b59b00c14e02632a4f1ba Mon Sep 17 00:00:00 2001 From: Mike Hendricks Date: Tue, 3 Sep 2024 19:26:30 -0700 Subject: [PATCH] Disable expand_path test on github actions Fix coverage stage error on github_action --- tests/test_env_var.py | 4 ++++ tox.ini | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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