Skip to content

Commit 5b403f7

Browse files
committed
add wheel in ci
1 parent e4d46f4 commit 5b403f7

2 files changed

Lines changed: 27 additions & 4 deletions

File tree

.github/workflows/testing_pr.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,41 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828

29+
- name: Install system dependencies (Linux)
30+
if: runner.os == 'Linux'
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y libboost-serialization-dev libprotobuf-dev protobuf-compiler libopenblas-dev liblapack-dev
34+
35+
- name: Install system dependencies (macOS)
36+
if: runner.os == 'macOS'
37+
run: |
38+
brew install boost protobuf openblas autoconf lapack automake libtool
39+
echo "CPATH=/opt/homebrew/include" >> $GITHUB_ENV
40+
echo "LIBRARY_PATH=/opt/homebrew/lib" >> $GITHUB_ENV
41+
2942
- name: Set up Java for PyCOMPSs
3043
if: runner.os != 'Windows'
3144
uses: actions/setup-java@v3
3245
with:
3346
distribution: 'temurin'
34-
java-version: '8'
47+
java-version: '11'
3548

3649
- name: Install Python dependencies
3750
shell: bash
3851
run: |
3952
python3 -m pip install --upgrade pip
40-
if [ "$RUNNER_OS" != "Windows" ]; then python3 -m pip install pycompss --no-build-isolation; fi
53+
python3 -m pip install setuptools wheel
54+
if [ "$RUNNER_OS" != "Windows" ]; then
55+
python3 -m pip install pycompss --no-build-isolation
56+
fi
4157
python3 -m pip install .[test]
4258
4359
- name: Test with pytest
4460
shell: bash
4561
run: |
46-
if [ "$RUNNER_OS" == "Windows" ]; then python3 -m pytest --ignore=tests/test_parallel/; else python3 -m pytest; fi
62+
if [ "$RUNNER_OS" == "Windows" ]; then
63+
python3 -m pytest --ignore=tests/test_parallel/
64+
else
65+
python3 -m pytest
66+
fi

ezyrb/parallel/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
from .reduction import Reduction
1919
from .pod import POD
2020
from .ae import AE
21-
from .ae_eddl import AE_EDDL
21+
try:
22+
from .ae_eddl import AE_EDDL
23+
except ImportError:
24+
pass
2225
from .approximation import Approximation
2326
from .rbf import RBF
2427
from .linear import Linear

0 commit comments

Comments
 (0)