File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,14 @@ jobs:
46
46
pip install --editable=.[test]
47
47
postroj --version
48
48
49
+ - name : Debug environment
50
+ run : |
51
+ sudo --preserve-env python -c 'import json, os; print(json.dumps(dict(os.environ), indent=2))'
52
+
49
53
- name : Run tests
50
54
# FIXME: Can this be run without elevated privileges?
51
55
run : |
52
- sudo $(command -v pytest)
56
+ sudo --preserve-env $(command -v pytest)
53
57
coverage xml --omit postroj/winrunner.py
54
58
55
59
- name : Upload coverage results to Codecov
Original file line number Diff line number Diff line change 12
12
13
13
14
14
if "rackerhost-debian11" in socket .gethostname ():
15
- pytest .skip ("Nested virtualization with VT-x not working on developer's workstation" , allow_module_level = True )
15
+ pytest .skip ("Nested virtualization with VT-x fails on developer's macOS workstation" , allow_module_level = True )
16
16
17
- if "GITHUB_ACTIONS" in os .environ :
17
+ GITHUB_ACTIONS = os .environ .get ("GITHUB_ACTIONS" ) in ('True' , 'true' )
18
+ if GITHUB_ACTIONS :
18
19
pytest .skip ("Installing the Vagrant filesystem image for Windows "
19
20
"takes too much disk space on GitHub Actions" , allow_module_level = True )
20
21
You can’t perform that action at this time.
0 commit comments