-
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 branch 'olafs_git_hub_pipeline' into release-0.12.0
- Loading branch information
Showing
16 changed files
with
466 additions
and
237 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,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 }} |
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.