Skip to content

Commit

Permalink
Disable expand_path test on github actions
Browse files Browse the repository at this point in the history
Fix coverage stage error on github_action
  • Loading branch information
MHendricks committed Sep 4, 2024
1 parent 2c63a8a commit 63bbb44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/test_env_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,6 +29,7 @@ commands =
basepython = python3
deps =
coverage
setuptools
commands =
# Ensure the version.py file is created
python setup.py egg_info
Expand All @@ -37,6 +40,7 @@ commands =
basepython = python3
deps =
coverage
setuptools
commands =
coverage combine
coverage report
Expand Down

0 comments on commit 63bbb44

Please sign in to comment.