Skip to content

Commit e4d46f4

Browse files
committed
ci: fix pycompss build, inject java 8, and skip windows parallel tests
1 parent ad374a7 commit e4d46f4

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/testing_pr.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches:
66
- "master"
77

8-
98
jobs:
109
build:
1110
runs-on: ${{ matrix.os }}
@@ -14,21 +13,34 @@ jobs:
1413
matrix:
1514
os: [windows-latest, macos-latest, ubuntu-latest]
1615
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
16+
17+
env:
18+
CFLAGS: "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
19+
CXXFLAGS: "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types"
1720

1821
steps:
1922
- uses: actions/checkout@v4
2023

21-
2224
- name: Set up Python
2325
uses: actions/setup-python@v4
2426
with:
2527
python-version: ${{ matrix.python-version }}
2628

29+
- name: Set up Java for PyCOMPSs
30+
if: runner.os != 'Windows'
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'temurin'
34+
java-version: '8'
35+
2736
- name: Install Python dependencies
37+
shell: bash
2838
run: |
2939
python3 -m pip install --upgrade pip
40+
if [ "$RUNNER_OS" != "Windows" ]; then python3 -m pip install pycompss --no-build-isolation; fi
3041
python3 -m pip install .[test]
3142
3243
- name: Test with pytest
44+
shell: bash
3345
run: |
34-
python3 -m pytest
46+
if [ "$RUNNER_OS" == "Windows" ]; then python3 -m pytest --ignore=tests/test_parallel/; else python3 -m pytest; fi

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ docs = [
3030
]
3131
test = [
3232
"pytest",
33-
"pytest-cov"
33+
"pytest-cov",
34+
"torch"
3435
]
3536
dev = [
3637
"black",
3738
"pylint"
3839
]
40+
parallel = [
41+
"pycompss"
42+
]
3943

4044
[project.urls]
4145
Homepage = "https://github.com/mathLab/EZyRB"

0 commit comments

Comments
 (0)