Skip to content

Commit

Permalink
Added Python building to automatic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Oct 31, 2023
1 parent e5f7de8 commit 8068650
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,20 @@ jobs:
- name: Run
working-directory: ${{github.workspace}}/build/Examples/InterpolationDemo
run: ./InterpolationDemo

linux-python:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Dependency Cache
uses: actions/cache@v3
id: cache-dependencies
with:
key: viennaps-dependency-cache-${{ runner.os }}-${{env.BUILD_TYPE}}-${{ hashFiles( './external/upstream/**CMakeLists.txt' ) }}
path: ${{github.workspace}}/dependencies/Install

- name: Build and install Python module
shell: bash
run: pip3 install --user . -v
24 changes: 24 additions & 0 deletions .github/workflows/macos_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,27 @@ jobs:
- name: Run
working-directory: ${{github.workspace}}/build/Examples/InterpolationDemo
run: ./InterpolationDemo

macos-python:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Dependency Cache
uses: actions/cache@v3
id: cache-dependencies
with:
key: viennaps-dependency-cache-${{ runner.os }}-${{env.BUILD_TYPE}}-${{ hashFiles( './external/upstream/**CMakeLists.txt' ) }}
path: ${{github.workspace}}/dependencies/Install

- name: Build and install Python module
shell: bash
run: |
export OpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include"
export OpenMP_CXX_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include"
export OpenMP_C_LIB_NAMES="omp"
export OpenMP_CXX_LIB_NAMES="omp"
export OpenMP_omp_LIBRARY="$(brew --prefix libomp)/lib/libomp.a"
pip3 install --user . -v
18 changes: 18 additions & 0 deletions .github/workflows/windows_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,21 @@ jobs:
working-directory: ${{github.workspace}}/build/Examples/InterpolationDemo/${{env.BUILD_TYPE}}
shell: bash
run: ./InterpolationDemo.exe $(echo "/${{github.workspace}}" | sed -e 's/\\/\//g' -e 's/://')/build/Examples/InterpolationDemo/

windows-python:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Restore build cache
uses: actions/cache@v3
id: viennaps-dependency-cache
with:
key: viennaps-dependency-cache-${{ runner.os }}-${{env.BUILD_TYPE}}-${{ hashFiles( './external/upstream/**CMakeLists.txt' ) }}
path: ${{github.workspace}}/dependencies/Install

- name: Build and install Python module
shell: bash
run: pip3 install --user . -v

0 comments on commit 8068650

Please sign in to comment.