Skip to content

Commit e50b7ac

Browse files
committed
Added initial pypi wheels testing
1 parent 3eeca12 commit e50b7ac

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Check PyPI Wheels
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 14 * * *' # 2pm UTC == 9am EST
6+
jobs:
7+
check_pypi_wheels:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
python-version: ['3.10', '3.11', '3.12', '3.13']
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set Up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "${{ matrix.python-version }}"
19+
- name: Display Python Version
20+
run: python -c "import sys; print(sys.version)"
21+
shell: bash
22+
- name: Upgrade Pip
23+
run: python -m pip install --upgrade pip
24+
shell: bash
25+
- name: Install STUMPY And Other Dependencies
26+
run: python -m pip install stumpy[ci]
27+
shell: bash
28+
- name: Install OpenMP
29+
run: |
30+
if [ "$RUNNER_OS" == "macOS" ]; then
31+
echo "Installing OpenMP"
32+
brew install libomp
33+
echo "Linking OpenMP"
34+
brew link --force libomp
35+
echo "Find OpenMP Linking Location"
36+
libfile=`brew list libomp --verbose | grep libomp.dylib`
37+
echo $libfile
38+
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
39+
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
40+
fi
41+
shell: bash
42+
- name: Show Full Numba Environment
43+
run: python -m numba -s
44+
shell: bash
45+
- name: Run Unit Tests
46+
run: ./test.sh
47+
shell: bash

0 commit comments

Comments
 (0)