-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic Testing, Endpoints Update (#212)
* qryd_tweezer_device -> qryd_emulator * missing * deserialization fixes * updated tests * reverted twz renaming * fixed correct twz instance for tests * CHANGELOG * lock * versioning * changelog * workflow test pin * back to normal workflows * mdbook workflow correction * test workflow * test workflow fix * more tests * again * again * again * first workflow solution * beginnig new dev solution * new feature * from_api headers solution * doc corr * more doc corr * new solution, old signature * solutionwithout feature gate * clippy * removed test workflow * workflow corrections * versioning * DEP * 5_2 + X-DEV independent from X-HQS * workflow correction * merging error * set_allow_reset changes * set_allow_reset tests changes * qiskit_emulator correction * api_backend active_reset update * CHANGELOG
- Loading branch information
Showing
18 changed files
with
1,139 additions
and
323 deletions.
There are no files selected for viewing
24 changes: 22 additions & 2 deletions
24
.../workflows/hqs-build-deploy-rust-pyo3.yml → ...hqs-build-deploy-rust-pyo3-prerelease.yml
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
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,91 @@ | ||
name: HQS build and deploy for rust pyo3 repos (release) | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
api_integration_hqs: | ||
runs-on: ubuntu-latest | ||
env: | ||
QRYD_API_HQS: 1 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
components: rustfmt | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- run: | | ||
python -m pip install numpy | ||
cargo test --workspace --no-default-features --locked | ||
api_integration: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
components: rustfmt | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
continue-on-error: true | ||
- run: | | ||
python -m pip install numpy | ||
cargo test --workspace --no-default-features --locked | ||
deploy_cratesio: | ||
runs-on: ubuntu-latest | ||
needs: [api_integration_hqs] | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
default: true | ||
- name: setup cargo | ||
run: | | ||
cargo login ${{ secrets.CRATES_IO_API_TOKEN }} | ||
cargo publish --manifest-path=roqoqo-qryd/Cargo.toml | ||
sleep 30 | ||
cargo publish --manifest-path=qoqo-qryd/Cargo.toml | ||
build_maturin_builds_linux: | ||
needs: [deploy_cratesio, api_integration_hqs] | ||
name: maturin_build-linux | ||
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_linux.yml@main | ||
with: | ||
py_interface_folder: "qoqo-qryd" | ||
deploy: true | ||
# Whether to build for aarch64. Can fail if there are C/C++ dependencies | ||
build_for_arm: false | ||
secrets: inherit | ||
|
||
build_maturin_builds_macos: | ||
name: maturin_build-macos | ||
needs: [deploy_cratesio, api_integration_hqs] | ||
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_macos.yml@main | ||
with: | ||
py_interface_folder: "qoqo-qryd" | ||
deploy: true | ||
secrets: inherit | ||
|
||
build_maturin_builds_windows: | ||
name: maturin_build-windows | ||
needs: [deploy_cratesio, api_integration_hqs] | ||
uses: HQSquantumsimulations/reusable_workflows/.github/workflows/reusable_build_maturin_windows.yml@main | ||
with: | ||
py_interface_folder: "qoqo-qryd" | ||
deploy: true | ||
secrets: inherit |
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
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
Oops, something went wrong.