Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/workflows/testing_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- "master"


jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -14,21 +13,47 @@ jobs:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

env:
CFLAGS: "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
CXXFLAGS: "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"

steps:
- uses: actions/checkout@v4


- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libboost-serialization-dev libprotobuf-dev protobuf-compiler libopenblas-dev liblapack-dev

- name: Set up Java for PyCOMPSs
if: runner.os == 'Linux'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Install Python dependencies
shell: bash
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel
if [ "$RUNNER_OS" == "Linux" ]; then
python3 -m pip install pycompss --no-build-isolation
fi
python3 -m pip install .[test]

- name: Test with pytest
shell: bash
run: |
python3 -m pytest
if [ "$RUNNER_OS" == "Linux" ]; then
python3 -m pytest
else
python3 -m pytest --ignore=tests/test_parallel/
fi
5 changes: 4 additions & 1 deletion ezyrb/parallel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
from .reduction import Reduction
from .pod import POD
from .ae import AE
from .ae_eddl import AE_EDDL
try:
from .ae_eddl import AE_EDDL
except ImportError:
pass
from .approximation import Approximation
from .rbf import RBF
from .linear import Linear
Expand Down
13 changes: 11 additions & 2 deletions ezyrb/parallel/pod.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@
from numpy.linalg import eigh
import numpy as np

from pycompss.api.task import task
from pycompss.api.parameter import INOUT, IN
try:
from pycompss.api.task import task
from pycompss.api.parameter import INOUT, IN
except ImportError:
# Fallback: Define a 'do-nothing' decorator and dummy constants
def task(*args, **kwargs):
return lambda f: f

INOUT = None
IN = None

from .reduction import Reduction


Expand Down
Loading
Loading