Skip to content

Commit

Permalink
CI: Debug environment
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 8, 2022
1 parent ef964a4 commit 97da602
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ jobs:
pip install --editable=.[test]
postroj --version
- name: Debug environment
run: |
sudo --preserve-env python -c 'import json, os; print(json.dumps(dict(os.environ), indent=2))'
- name: Run tests
# FIXME: Can this be run without elevated privileges?
run: |
sudo $(command -v pytest)
sudo --preserve-env $(command -v pytest)
coverage xml --omit postroj/winrunner.py
- name: Upload coverage results to Codecov
Expand Down
5 changes: 3 additions & 2 deletions testing/racker/test_run_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@


if "rackerhost-debian11" in socket.gethostname():
pytest.skip("Nested virtualization with VT-x not working on developer's workstation", allow_module_level=True)
pytest.skip("Nested virtualization with VT-x fails on developer's macOS workstation", allow_module_level=True)

if "GITHUB_ACTIONS" in os.environ:
GITHUB_ACTIONS = os.environ.get("GITHUB_ACTIONS") in ('True', 'true')
if GITHUB_ACTIONS:
pytest.skip("Installing the Vagrant filesystem image for Windows "
"takes too much disk space on GitHub Actions", allow_module_level=True)

Expand Down

0 comments on commit 97da602

Please sign in to comment.