-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #511 from QuTech-Delft/release-0.12.0
Release 0.12.0
- Loading branch information
Showing
23 changed files
with
504 additions
and
273 deletions.
There are no files selected for viewing
This file contains 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
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 }} |
This file contains 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
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 }} |
Oops, something went wrong.