Skip to content

Commit 8414ffb

Browse files
committed
ci: another pass at getting OpenSCAD working
1 parent 49718cc commit 8414ffb

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ jobs:
5050
run: openscad --info
5151
continue-on-error: true
5252

53-
- name: Run Unit Tests
54-
shell: bash
55-
working-directory: ./tests
56-
run: python3 -m unittest
53+
- name: Run Unit Tests (Headless)
54+
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
55+
with:
56+
shell: bash
57+
working-directory: ./tests
58+
run: python3 -m unittest
5759

5860
concurrency:
5961
group: ${{ github.workflow }}-${{ github.ref }}

tests/openscad_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class OpenScadRunner:
117117
#'--hardwarnings', # Does not work when setting variables by using functions
118118
#'--enable=fast-csg', # Requires Beta version of OpenSCAD
119119
#'--enable=predictible-output', # Requires Beta version of OpenSCAD
120-
'--render=true' # Required on headless systems
120+
#'--render=true' # Fully render geometry for images, instead of using fast preview mode.
121121
'--imgsize=1280,720',
122122
'--view=axes',
123123
'--projection=ortho',

0 commit comments

Comments
 (0)