File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,25 @@ jobs:
52
52
run : |
53
53
uv pip install --editable .[dev]
54
54
55
+ - name : Setup virtual display
56
+ run : |
57
+ export DISPLAY=:99.0
58
+ Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
59
+ sleep 3 # Give Xvfb time to start
60
+
55
61
- name : Test with pytest
56
62
id : pytest
57
63
continue-on-error : false
64
+ env :
65
+ # Ensure proper X11 and GUI environment
66
+ LIBGL_ALWAYS_SOFTWARE : 1
67
+ DISPLAY : " :99.0"
68
+ QT_QPA_PLATFORM : " offscreen"
69
+ MPLBACKEND : " Agg"
70
+ PYTHONPATH : ${{ github.workspace }}
71
+ CI : " true" # Mark as CI environment
58
72
run : |
59
- export LIBGL_ALWAYS_SOFTWARE=1
60
- export DISPLAY=:99
61
- Xvfb :99 -screen 0 1024x768x16 &
62
- uv run pytest --cov=ardupilot_methodic_configurator --cov-report=xml:tests/coverage.xml --md=tests/results-${{ matrix.python-version }}.md --junit-xml=tests/results-junit.xml
73
+ uv run --python=${{ matrix.python-version }} pytest --cov=ardupilot_methodic_configurator --cov-report=xml:tests/coverage.xml --md=tests/results-${{ matrix.python-version }}.md --junit-xml=tests/results-junit.xml
63
74
64
75
- name : Fix coverage paths
65
76
run : |
You can’t perform that action at this time.
0 commit comments