Skip to content

Commit

Permalink
Merge branch 'olafs_git_hub_pipeline' into release-0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Dec 18, 2023
2 parents a81b53d + 281a0f3 commit 11cec03
Show file tree
Hide file tree
Showing 16 changed files with 466 additions and 237 deletions.
32 changes: 32 additions & 0 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Compile OpenQL
description: Install tools and compile OpenQL
inputs:
build_type:
required: true
description: Is the build a debug or release version
conan_profile:
required: true
description: Which conan profile to use
shell:
required: true
description: Which shell to use for the `run` command

runs:
using: composite
steps:
- name: Install conan
run: python3 -m pip install --upgrade pip conan
shell: ${{ inputs.shell }}
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Configure and build
run: |
conan profile detect --force
conan_profile=${{ inputs.conan_profile }}
lowercase_conan_profile=$(echo ${conan_profile} | tr '[:upper:]' '[:lower:]')
conan build . -pr=conan/profiles/${lowercase_conan_profile} -b missing
shell: ${{ inputs.shell }}
- name: Test
working-directory: build/${{ inputs.build_type }}
run: ctest -C ${{ inputs.build_type }} --output-on-failure
shell: ${{ inputs.shell }}
24 changes: 24 additions & 0 deletions .github/actions/python-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Python tests
description: Install and run tests in Python
inputs:
shell:
required: true
description: Which shell to use for the `run` command

runs:
using: composite
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Install Python dependencies
run: python -m pip install --upgrade pip conan numpy pytest qxelarator setuptools wheel
shell: ${{ inputs.shell }}
- name: Build
run: python -m pip install --verbose .
shell: ${{ inputs.shell }}
- name: Test
run: python -m pytest
shell: ${{ inputs.shell }}
Loading

0 comments on commit 11cec03

Please sign in to comment.