-
Notifications
You must be signed in to change notification settings - Fork 69
59 lines (50 loc) · 1.6 KB
/
testing_pr.yml
File metadata and controls
59 lines (50 loc) · 1.6 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
name: "Testing Pull Request"
on:
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
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: |
if [ "$RUNNER_OS" == "Linux" ]; then
python3 -m pytest
else
python3 -m pytest --ignore=tests/test_parallel/
fi