Skip to content

Commit 40f8507

Browse files
committed
add wheel in ci
1 parent e4d46f4 commit 40f8507

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/testing_pr.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,34 @@ 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+
2935
- name: Set up Java for PyCOMPSs
30-
if: runner.os != 'Windows'
36+
if: runner.os == 'Linux'
3137
uses: actions/setup-java@v3
3238
with:
3339
distribution: 'temurin'
34-
java-version: '8'
40+
java-version: '11'
3541

3642
- name: Install Python dependencies
3743
shell: bash
3844
run: |
3945
python3 -m pip install --upgrade pip
40-
if [ "$RUNNER_OS" != "Windows" ]; then python3 -m pip install pycompss --no-build-isolation; fi
46+
python3 -m pip install setuptools wheel
47+
if [ "$RUNNER_OS" == "Linux" ]; then
48+
python3 -m pip install pycompss --no-build-isolation
49+
fi
4150
python3 -m pip install .[test]
4251
4352
- name: Test with pytest
4453
shell: bash
4554
run: |
46-
if [ "$RUNNER_OS" == "Windows" ]; then python3 -m pytest --ignore=tests/test_parallel/; else python3 -m pytest; fi
55+
if [ "$RUNNER_OS" == "Linux" ]; then
56+
python3 -m pytest
57+
else
58+
python3 -m pytest --ignore=tests/test_parallel/
59+
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)