Skip to content

Commit

Permalink
CI: Don't run Windows tests on GHA, it takes too much disk space
Browse files Browse the repository at this point in the history
The GHA job output already croaked about this, like:

    You are running out of disk space. The runner will stop working when
    the machine runs out of disk space. Free space left: 0 MB
  • Loading branch information
amotl committed Jun 8, 2022
1 parent 8904068 commit a9424e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions testing/racker/test_run_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9424e8

Please sign in to comment.