diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 698298c..ede719d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -49,8 +49,8 @@ jobs: - name: Run tests # FIXME: Can this be run without elevated privileges? run: | - sudo $(command -v pytest) - coverage xml + sudo --preserve-env $(command -v pytest) + coverage xml --omit postroj/winrunner.py - name: Upload coverage results to Codecov uses: codecov/codecov-action@v3 diff --git a/testing/racker/test_run_windows.py b/testing/racker/test_run_windows.py index 8bafa13..f3a09d0 100644 --- a/testing/racker/test_run_windows.py +++ b/testing/racker/test_run_windows.py @@ -14,6 +14,10 @@ if "rackerhost-debian11" in socket.gethostname(): pytest.skip("Nested virtualization with VT-x fails on developer's macOS workstation", allow_module_level=True) +if "GITHUB_ACTIONS" in os.environ: + pytest.skip("Installing the Vagrant filesystem image for Windows " + "takes too much disk space on GitHub Actions", allow_module_level=True) + def run_racker(command: str) -> subprocess.CompletedProcess: program_path = Path(sys.argv[0]).parent