-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (63 loc) · 2.2 KB
/
ray-actions.yml
File metadata and controls
63 lines (63 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Check Ray
on:
workflow_dispatch:
schedule:
- cron: '0 14 * * *' # 2pm UTC == 9am EST
jobs:
check_ray:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout STUMPY
uses: actions/checkout@v4
with:
repository: stumpy-dev/stumpy
- name: Get Required Python Version
id: python
run: |
python -m pip install pandas packaging lxml docutils
echo "version=$(python ./versions.py -pkg ray)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v5
with:
python-version: "${{ steps.python.outputs.version }}"
- name: Display Python Version
run: python -c "import sys; print(sys.version)"
shell: bash
- name: Upgrade Pip
run: python -m pip install --upgrade pip
shell: bash
- name: Checkout STUMPY Again
uses: actions/checkout@v4
with:
repository: stumpy-dev/stumpy
- name: Install STUMPY And Other Dependencies
run: python -m pip install --editable .[ci]
shell: bash
- name: Install Ray
run: python -m pip install --upgrade ray
shell: bash
- name: Install OpenMP
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
echo "Installing OpenMP"
brew install libomp
echo "Linking OpenMP"
brew link --force libomp
echo "Find OpenMP Linking Location"
libfile=`brew list libomp --verbose | grep libomp.dylib`
echo $libfile
echo "Changing @rpath for the omppool.cpython-x-darwin.so shared object to look in $libfile"
ls "$(python -c 'import site; print(site.getsitepackages()[0])')"/numba/np/ufunc/omppool.*.so | xargs install_name_tool -change @rpath/libomp.dylib $libfile
fi
shell: bash
- name: Show Full Numba Environment
run: python -m numba -s
shell: bash
- name: Run Ray Unit Tests
run: ./test.sh custom 1 tests/test_ray.py
shell: bash