Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,40 @@ jobs:
output_dir: ${{ github.workspace }}/tests-results_dir
nb_parallel_threads: '4'

- name: Inspect repository tree
shell: bash
run: |
echo "Repository root:"
ls -la .
ls -la ${{ env.WORKSPACE_SRC_PATH }}

if [ -z "$SOFA_ROOT" ]; then
echo "SOFA_ROOT is not set"
else
echo "SOFA_ROOT=$SOFA_ROOT"
fi

if [ -z "$REGRESSION_DIR" ]; then
echo "REGRESSION_DIR is not set"
else
echo "REGRESSION_DIR=$REGRESSION_DIR"
fi
- name: Install Python dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install tqdm

- name: New regression tests
shell: bash
env:
SOFA_ROOT: ${{ github.workspace }}/build
run: |
cd regression
python SofaRegressionProgram.py \
--input ${{ env.WORKSPACE_SRC_PATH }}/examples/ \
--output ${{ env.WORKSPACE_SRC_PATH }}/regression/references/

deploy:
name: Deploy artifacts
if: always() && startsWith(github.ref, 'refs/heads/main') # we are on a branch (not a PR)
Expand Down
12 changes: 6 additions & 6 deletions examples/RegressionStateScenes.regression-tests
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
../regression/references

### Demo scenes ###
BeatingCube.scn 200 1e-4 1 1
BeatingCube_moving.scn 200 1e-4 1 1
Cube_AdvCarvingTexcoords.scn 500 1e-4 1 1
Cube_Carving.scn 500 1e-4 1 1
Cube_CarvingWithPenetration.scn 500 1e-4 1 1
TetrahedronBeamMultiMaterials.scn 500 1e-4 1 1
BeatingCube.scn 200 1e-4 1 20
BeatingCube_moving.scn 200 1e-4 1 20
Cube_AdvCarvingTexcoords.scn 500 1e-4 1 20
Cube_Carving.scn 500 1e-4 1 20
Cube_CarvingWithPenetration.scn 500 1e-4 1 20
TetrahedronBeamMultiMaterials.scn 500 1e-4 1 20
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading