From 814fb690009df37a9fa6292af40d5268e176ae5c Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 8 Oct 2026 16:39:15 -0600 Subject: [PATCH] Skip the CI-unsupported tests on GitHub Actions too skip_circleci only read CIRCLECI, so on GitHub Actions test_archive_upload ran without the readability tooling it needs, and failed. Co-Authored-By: Claude Opus 5.5 --- wrolpi/test/common.py | 2 +- wrolpi/vars.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wrolpi/test/common.py b/wrolpi/test/common.py index 128163ce..9dd35765 100644 --- a/wrolpi/test/common.py +++ b/wrolpi/test/common.py @@ -15,7 +15,7 @@ from wrolpi.vars import CIRCLECI, IS_MACOS TEST_CONFIG_PATH = tempfile.NamedTemporaryFile(mode='rt', delete=False) -skip_circleci = pytest.mark.skipif(CIRCLECI, reason='This test is not supported in Circle CI') +skip_circleci = pytest.mark.skipif(CIRCLECI, reason='This test is not supported in CI') skip_macos = pytest.mark.skipif(IS_MACOS, reason='This test is not supported on MacOS') only_macos = pytest.mark.skipif(not IS_MACOS, reason='This test is only supported on MacOS') diff --git a/wrolpi/vars.py b/wrolpi/vars.py index 614326fc..930f43c3 100644 --- a/wrolpi/vars.py +++ b/wrolpi/vars.py @@ -57,8 +57,8 @@ PYTEST = 'pytest' in sys.modules # Used to test if the Internet is up. INTERNET_SERVER = os.environ.get('INTERNET_SERVER', 'one.one.one.one') -# running on circlci -CIRCLECI = truthy_arg(os.environ.get('CIRCLECI', '')) +# Running on a hosted CI runner (CircleCI or GitHub Actions), which lacks things some tests need. +CIRCLECI = truthy_arg(os.environ.get('CIRCLECI', '')) or truthy_arg(os.environ.get('GITHUB_ACTIONS', '')) # Get the media directory from the environment. DEFAULT_MEDIA_DIRECTORY = Path('/media/wrolpi')