Fix issues #224 and #225: Parallel Documentation and add Unit Tests #206
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | |
| # Linux needs these for both PyCOMPSs and PyEDDL | |
| - 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 | |
| # macOS needs similar tools via brew | |
| - name: Install system dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install boost protobuf openblas lapack | |
| - name: Set up Java for PyCOMPSs | |
| if: runner.os != 'Windows' | |
| 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 pybind11 | |
| if [ "$RUNNER_OS" != "Windows" ]; then | |
| python3 -m pip install pycompss pyeddl --no-build-isolation | |
| fi | |
| python3 -m pip install .[test] | |
| - name: Test with pytest | |
| shell: bash | |
| run: | | |
| if [ "$RUNNER_OS" == "Windows" ]; then | |
| python3 -m pytest --ignore=tests/test_parallel/ | |
| else | |
| python3 -m pytest | |
| fi |