Skip to content

Commit

Permalink
Fix fuzzy testing (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics authored Sep 30, 2023
1 parent df8e7ba commit 0ec9edc
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/fuzzy-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,20 @@ on:
branches: [ main ]
paths:
- ".github/workflows/fuzzy-testing.yml"
- "bindings/python/**"
- "cmake/**"
- "examples/**"
- "src/**"
- "test/scripts/fuzzy_test.py"
- "test/scripts/link_h5_dataset.py"
- "CMakeLists.txt"
- "conanfile.txt"
- "pyproject.toml"
- "setup.cfg"
- "setup.py"
tags:
- 'v*.*.*'

pull_request:
paths:
- ".github/workflows/fuzzy-testing.yml"
- "bindings/python/**"
- "test/scripts/fuzzy_test.py"
- "test/scripts/link_h5_dataset.py"
- "pyproject.toml"
- "setup.cfg"
- "setup.py"

schedule:
# Run weekly
Expand Down Expand Up @@ -112,6 +103,9 @@ jobs:
CONAN_HOME: '/root/.conan2'

steps:
- name: Clone hictk
uses: actions/checkout@v4

- name: Clone hictkpy
uses: actions/checkout@v4
with:
Expand All @@ -127,7 +121,7 @@ jobs:
sed -i 's|URL_HASH.*|GIT_TAG ${{ github.event.after }}|' CMakeLists.txt
grep 'GIT_TAG' CMakeLists.txt
- name: Patch hictkpy
- name: Patch hictkpy (schedule)
working-directory: hictkpy
if: github.event_name == 'schedule'
run: |
Expand Down Expand Up @@ -166,21 +160,43 @@ jobs:
conan cache clean "*" --source
conan remove --confirm "*"
- name: Install build dependencies
run: |
conan install . \
--build=missing \
-pr:b="$CONAN_DEFAULT_PROFILE_PATH" \
-pr:h="$CONAN_DEFAULT_PROFILE_PATH" \
-s build_type=Release \
-s compiler.libcxx=libstdc++11 \
-s compiler.cppstd=17 \
-o '*/*:shared=True' \
--output-folder=build
conan install hictkpy \
--build=missing \
-pr:b="$CONAN_DEFAULT_PROFILE_PATH" \
-pr:h="$CONAN_DEFAULT_PROFILE_PATH" \
-s build_type=Release \
-s compiler.libcxx=libstdc++11 \
-s compiler.cppstd=17 \
-o '*/*:shared=True' \
--output-folder=build
- name: Clean Conan cache (post-build)
if: steps.cache-conan.outputs.cache-hit != 'true'
run: |
conan cache clean "*" --build
conan cache clean "*" --download
conan cache clean "*" --source
- name: Install Python bindings
working-directory: hictkpy
run: |
pip install --upgrade pip setuptools wheel pybind11
env CC=clang-15 \
CXX=clang++-15 \
CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PWD/build" \
CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PWD/../build" \
HICTKPY_SETUP_SKIP_CONAN=1 \
pip install . -v
- name: Save Conan cache
Expand Down

0 comments on commit 0ec9edc

Please sign in to comment.