Skip to content

Commit

Permalink
Merge pull request #111 from isteinbrecher/use-cubitpy-repo
Browse files Browse the repository at this point in the history
Use the cubitpy repo in testing
  • Loading branch information
isteinbrecher authored Oct 4, 2024
2 parents b2d6404 + dd2b521 commit 706aea5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ env:
PYTHON_EXE: python3
PYTHON_VENV: python-testing-environment
# Meshpy can interact with cubitpy, to perform the corresponding tests,
# the following paths have to be set
CUBITPY_REPO: /home_local/github-runner/testing_lib/cubitpy_main
FOUR_C_PRE_EXODUS: /home_local/github-runner/testing_lib/four_c_master/release/pre_exodus
# the following path has to be set
CUBIT_ROOT: /imcs/public/compsim/opt/cubit-15.2
# Meshpy allows to perform geometric search functions with ArborX,
# for this functionality we need Kokkos. On IMCS Ares this is provided
Expand Down Expand Up @@ -59,12 +57,6 @@ jobs:
pip install .[CI-CD]
# Check git configuration
git config --list
# Install cubitpy
cd $CUBITPY_REPO
git checkout main
git pull
pip install .
cd $MESHPY_PATH
# Print information on the python environment
python --version
pip list
Expand Down Expand Up @@ -114,7 +106,7 @@ jobs:
pip install --upgrade pip
# Install meshpy, it is not yet possible to globally install the ArborX binaries, so we
# use the developement mode here.
pip install -e .
pip install -e .[CI-CD]
# Print information on the python environment
python --version
pip list
Expand Down Expand Up @@ -144,12 +136,7 @@ jobs:
# We have to update pip, otherwise there is a bug in the compilation of the cython code
pip install --upgrade pip
# Install meshpy
pip install .
# Install cubitpy
cd $CUBITPY_REPO
git pull
pip install .
cd $MESHPY_PATH
pip install .[CI-CD]
# Print information on the python environment
python --version
pip list
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ dynamic = ["version"]
CI-CD = [
"coverage==7.4.4",
"coverage-badge",
"cubitpy@git+https://github.com/imcs-compsim/cubitpy.git@main",
"setuptools" # Needed for coverage-badge
]
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def empty_testing_directory():
def compare_string_tolerance(
reference, compare, *, rtol=None, atol=None, split_string=" "
):
"""Compare two strings, all floating point values will be compared with an
absolute tolerance."""
"""Compare two strings, all floating point values will be compared with a
tolerance."""

def set_tol(tol):
if tol is None:
Expand Down

0 comments on commit 706aea5

Please sign in to comment.