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 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-08 16:39:15 -06:00
parent 1b98839430
commit 814fb69000
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 3 additions and 3 deletions

View file

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

View file

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