Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.12.0 #511

Merged
merged 15 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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