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')