Skip to content

Commit

Permalink
adding make install
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Dec 17, 2023
1 parent c93e2fd commit 3b7b45a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_with_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
cd build
cmake ..
make
export PATH="$PWD:$PATH"
sudo make install
cd ..
python -m pip install .
cd ..
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_with_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
cd build
cmake ..
make
export PATH="$PWD:$PATH"
sudo make install
cd ..
python -m pip install .
cd ..
Expand Down
8 changes: 5 additions & 3 deletions tests/test_file_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def test_h5m_with_single_volume_list():

my_model = CadToDagmc()
my_model.add_stp_file(filename="tests/single_cube.stp", material_tags=["mat1"])
my_model.export_dagmc_h5m_file(filename=h5m_file, msh_filename="test.msh")
my_model.export_dagmc_h5m_file(filename=h5m_file)
my_model.export_gmsh_mesh_file(filename="test.msh")
assert Path("test.msh").is_file()
assert get_volumes_and_materials_from_h5m(h5m_file) == {1: "mat:mat1"}

Expand Down Expand Up @@ -161,8 +162,9 @@ def test_gmsh_mesh_with_single_volume_list():

my_model = CadToDagmc()
my_model.add_stp_file(filename="tests/single_cube.stp", material_tags=["mat1"])
my_model.export_gmsh_mesh_file(filename=gmsh_mesh_file, msh_filename="test.msh")
assert Path("test.msh").is_file()
my_model.export_gmsh_mesh_file(filename=gmsh_mesh_file)
my_model.export_gmsh_mesh_file(filename="test2.msh")
assert Path("test2.msh").is_file()


def test_gmsh_mesh_with_single_volume_2():
Expand Down

0 comments on commit 3b7b45a

Please sign in to comment.