From 2474b04d0179939e39782c32bdd07b5496941992 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Sun, 4 Aug 2024 03:08:42 -0400 Subject: [PATCH] ci: another pass at getting OpenSCAD working --- .github/workflows/ci.yml | 3 +++ tests/openscad_runner.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44e0b6e..e5d705d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,9 @@ jobs: with: python-version: "3.x" + - name: setup-xvfb (Needed by OpenSCAD when the system does not have a GUI) + uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a + - name: Install OpenSCAD run: | sudo apt-get update diff --git a/tests/openscad_runner.py b/tests/openscad_runner.py index e635397..ac586d3 100644 --- a/tests/openscad_runner.py +++ b/tests/openscad_runner.py @@ -117,7 +117,7 @@ class OpenScadRunner: #'--hardwarnings', # Does not work when setting variables by using functions #'--enable=fast-csg', # Requires Beta version of OpenSCAD #'--enable=predictible-output', # Requires Beta version of OpenSCAD - '--render=true' # Required on headless systems + #'--render=true' # Fully render geometry for images, instead of using fast preview mode. '--imgsize=1280,720', '--view=axes', '--projection=ortho',