Skip to content

Commit b8710cf

Browse files
committed
Fixed combine function
1 parent 766240a commit b8710cf

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/github-actions.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,44 @@ jobs:
171171
- uses: actions/checkout@v4
172172
with:
173173
python-version: '3.12'
174+
- name: Display Python Version
175+
run: python -c "import sys; print(sys.version)"
176+
shell: bash
177+
- name: Upgrade Pip
178+
run: python -m pip install --upgrade pip
179+
shell: bash
180+
- name: Install STUMPY And Other Dependencies
181+
run: python -m pip install --editable .[ci]
182+
shell: bash
183+
- name: Run Black
184+
run: black --check --diff ./
185+
shell: bash
186+
- name: Run Flake8
187+
run: flake8 ./
188+
shell: bash
189+
- name: Link OpenMP
190+
run: |
191+
if [ "$RUNNER_OS" == "macOS" ]; then
192+
echo "Installing OpenMP"
193+
brew install libomp
194+
echo "Linking OpenMP"
195+
brew link --force libomp
196+
echo "Find OpenMP Linking Location"
197+
libfile=`brew list libomp --verbose | grep libomp.dylib`
198+
echo $libfile
199+
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
200+
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
201+
fi
202+
shell: bash
203+
- name: Show Full Numba Environment
204+
run: python -m numba -s
205+
shell: bash
174206
- uses: actions/download-artifact@v4
175207
with:
176208
pattern: coverage-data-*
177209
merge-multiple: true
178210
- name: Combine Coverage Files and Fail If Under 100%
179-
run: ls .coverage.*
211+
run: ./test.sh combine*
180212
shell: bash
181213
- name: Generate Coverage Report
182214
run: ./test.sh report coverage.stumpy.json

0 commit comments

Comments
 (0)