Skip to content

Commit

Permalink
Merge pull request #511 from QuTech-Delft/release-0.12.0
Browse files Browse the repository at this point in the history
Release 0.12.0
  • Loading branch information
rturrado authored Jan 2, 2024
2 parents 3f88789 + 051de6e commit 027e12e
Show file tree
Hide file tree
Showing 23 changed files with 504 additions and 273 deletions.
36 changes: 36 additions & 0 deletions .github/actions/cpp-tests/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
# We clean the Conan cache as a preventive measure for our runs in self-hosted runners
# Self-hosted runners use containers that cache Conan packages from previous runs,
# and that can cause different type of problems
- name: Configure and build
run: |
conan profile detect --force
conan remove -c "*/*"
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 --parallel 10
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 027e12e

Please sign in to comment.