Skip to content

Commit 798cf23

Browse files
committed
use branch spack_recipes:add_use_of_mambo_step_repository to get access to mambo
1 parent b5e0e67 commit 798cf23

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/spack-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ on:
1111
jobs:
1212
call:
1313
name: Call Spack CI
14-
uses: LIHPC-Computational-Geometry/spack_recipes/.github/workflows/spack-reusable.yml@main
14+
uses: LIHPC-Computational-Geometry/spack_recipes/.github/workflows/spack-reusable.yml@add_use_of_mambo_step_repository

test_link/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ enable_testing()
77
find_program(PYTEST_LOCATION pytest)
88
message("PYTEST_LOCATION= ${PYTEST_LOCATION}")
99
message("ENVIRONMENT PYTHONPATH ${PYTHONPATH}")
10+
message("ENVIRONMENT MAGIX3D_TEST_DATA_DIR ${MAGIX3D_TEST_DATA_DIR}")
1011
#message("ENVIRONMENT PYTHONPATH ${CMAKE_PREFIX_PATH}/lib/python3.10/site-packages:$PYTHONPATH")
1112

1213
add_test(NAME test_link

test_link/test_curves_fuse.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import os
22
import pyMagix3D as Mgx3D
33

4-
step_file_name = "mambo/Simple/S45.step"
4+
step_file_name = "mambo/Simple/S39.step"
55

66
def test_curves_fuse_s45():
77
ctx = Mgx3D.getStdContext()
88
ctx.clearSession() # Clean the session after the previous test
99
gm = ctx.getGeomManager ()
1010
tm = ctx.getTopoManager ()
1111

12+
magix3d_test_data_dir = os.environ['MAGIX3D_TEST_DATA_DIR']
13+
full_path = os.path.join(magix3d_test_data_dir, step_file_name)
14+
1215
ctx.setLengthUnit(Mgx3D.Unit.meter)
13-
gm.importSTEP(step_file_name)
16+
gm.importSTEP(full_path)
1417
assert gm.getNbVolumes()==1

0 commit comments

Comments
 (0)