Skip to content

Commit

Permalink
Automatic Testing, Endpoints Update (#212)
Browse files Browse the repository at this point in the history
* 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
mlodi-hqs authored May 17, 2024
1 parent 4e7192a commit ebf4c17
Show file tree
Hide file tree
Showing 18 changed files with 1,139 additions and 323 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
name: HQS build and deploy for rust pyo3 repos
name: HQS build and deploy for rust pyo3 repos (prerelease)

on:
workflow_dispatch:
release:
types: [created]
types: [prereleased]

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
continue-on-error: true
- run: |
python -m pip install numpy
cargo test --workspace --no-default-features --locked
deploy_cratesio:
runs-on: ubuntu-latest
continue-on-error: true
Expand Down
91 changes: 91 additions & 0 deletions .github/workflows/hqs-build-deploy-rust-pyo3-release.yml
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pip install ./qoqo-qryd[docs]
- uses: peaceiris/actions-mdbook@v1
with:
version: latest
mdbook-version: latest
- name: build
run: |
# qoqo-qryd
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Tracks qoqo-qryd changes after 0.5

# 0.16.2

* Added X-HQS header to api requests for testing purposes
* Modified `APIBackend.post_job()` to use `v5_2` endpoint by default
* Modified `TweezerDevice.set_allow_reset()` and `APIBackend` to allow `PragmaActiveReset` only for "qiskit_emulator" devices

# 0.16.1

* Substituted server mocking package `mockito` with `wiremock`
Expand Down
Loading

0 comments on commit ebf4c17

Please sign in to comment.