mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 01:16:18 -05:00
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:
parent
1b98839430
commit
814fb69000
2 changed files with 3 additions and 3 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue