ci: another pass at getting OpenSCAD working

This commit is contained in:
Arthur Moore 2024-08-04 03:08:42 -04:00
parent 49718cccc2
commit 8414ffba35
2 changed files with 7 additions and 5 deletions

View file

@ -50,10 +50,12 @@ jobs:
run: openscad --info run: openscad --info
continue-on-error: true continue-on-error: true
- name: Run Unit Tests - name: Run Unit Tests (Headless)
shell: bash uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
working-directory: ./tests with:
run: python3 -m unittest shell: bash
working-directory: ./tests
run: python3 -m unittest
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}

View file

@ -117,7 +117,7 @@ class OpenScadRunner:
#'--hardwarnings', # Does not work when setting variables by using functions #'--hardwarnings', # Does not work when setting variables by using functions
#'--enable=fast-csg', # Requires Beta version of OpenSCAD #'--enable=fast-csg', # Requires Beta version of OpenSCAD
#'--enable=predictible-output', # 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', '--imgsize=1280,720',
'--view=axes', '--view=axes',
'--projection=ortho', '--projection=ortho',