diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44e0b6e..2418272 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,10 +50,12 @@ jobs: run: openscad --info continue-on-error: true - - name: Run Unit Tests - shell: bash - working-directory: ./tests - run: python3 -m unittest + - name: Run Unit Tests (Headless) + uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a + with: + shell: bash + working-directory: ./tests + run: python3 -m unittest concurrency: group: ${{ github.workflow }}-${{ github.ref }} 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',