Skip to content

Commit 858649b

Browse files
committed
CI: Add run of PartDesign CLI tests with AllowCompound
As we now have an experimental setting to allow multiple solids within a PartDesign Body, we now execute the tests with this setting enabled as well -- in addition to the tests with the default (aka without support multiple solids). The tests are executed in "safe-mode" to prevent any accidental persitence of the parameters to affect subsequent CI stages.
1 parent 558eb19 commit 858649b

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/actions/runPythonTests/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ runs:
4646
shell: bash -l {0}
4747
run: |
4848
set -o pipefail
49-
${{ inputs.testCommand }} | sed -Ee "/[[:blank:]]*\([[:digit:]]{1,3} %\)[[:blank:]]*/d" | tee -a ${{ inputs.logFile }}
49+
{
50+
${{ inputs.testCommand }}
51+
} | sed -Ee "/[[:blank:]]*\([[:digit:]]{1,3} %\)[[:blank:]]*/d" | tee -a ${{ inputs.logFile }}
5052
- name: Write report
5153
shell: bash -l {0}
5254
if: always()

.github/workflows/sub_buildUbuntu2004.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,20 @@ jobs:
223223
testCommand: FreeCADCmd -t 0
224224
logFile: ${{ env.logdir }}TestCLIInstall.log
225225
reportFile: ${{env.reportdir}}${{ env.reportfilename }}
226+
- name: FreeCAD CLI PD tests on install with AllowCompound enabled
227+
timeout-minutes: 5
228+
uses: ./.github/workflows/actions/runPythonTests
229+
with:
230+
testDescription: "CLI PD tests on install with AllowCompound enabled"
231+
testCommand: |
232+
cat > /tmp/enable_pd_compound.py <<EOF
233+
import FreeCAD
234+
pd_params = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/PartDesign")
235+
pd_params.SetBool("AllowCompoundDefault", True)
236+
EOF
237+
FreeCADCmd --safe-mode --run-test TestPartDesignApp /tmp/enable_pd_compound.py
238+
logFile: ${{ env.logdir }}TestCLIPDInstall.log
239+
reportFile: ${{env.reportdir}}${{ env.reportfilename }}
226240
- name: FreeCAD GUI tests on install
227241
timeout-minutes: 15
228242
uses: ./.github/workflows/actions/runPythonTests

0 commit comments

Comments
 (0)