-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor-schema-generation' of https://github.com/QuEra…
…Computing/bloqade-python into refactor-schema-generation
- Loading branch information
Showing
17 changed files
with
250 additions
and
356 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
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,44 @@ | ||
name: Coverage | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
# See: https://github.com/pdm-project/pdm/issues/1879 | ||
env: | ||
PDM_DEPS: 'urllib3<2' | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- uses: pdm-project/setup-pdm@v3 | ||
name: Setup PDM | ||
with: | ||
python-version: 3.9 # Version range or exact version of a Python version to use, the same as actions/setup-python | ||
# well we use virtualenv here | ||
# prerelease: true # Allow prerelease versions to be installed | ||
# enable-pep582: true # Enable PEP 582 package loading globally | ||
- name: Install dependencies | ||
run: pdm install # Then you can use pdm in the following steps. | ||
- name: Test with pytest & generate coverage | ||
run: | | ||
pdm run coverage | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml # optional | ||
fail_ci_if_error: true # optional (default = false) | ||
verbose: true # optional (default = false) |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
name: Deploy release documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for Dev documentation to deploy | ||
- name: Wait for dev documentation to deploy | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: main | ||
|
@@ -55,11 +55,10 @@ jobs: | |
run: | | ||
export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }} | ||
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION::3}" >> $GITHUB_ENV | ||
- name: Depoly documentation | ||
- name: Deploy documentation | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} | ||
run: | | ||
git fetch origin gh-pages --depth=1 | ||
pdm run mike deploy --rebase --push -F ${GITHUB_WORKSPACE}/mkdocs.yml --update-aliases latest ${RELEASE_TAG_VERSION} | ||
pdm run mike set-default --rebase --push -F ${GITHUB_WORKSPACE}/mkdocs.yml latest | ||
pdm run mike deploy -up ${RELEASE_TAG_VERSION} latest |
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 |
---|---|---|
|
@@ -16,9 +16,16 @@ env: | |
|
||
jobs: | ||
documentation: | ||
name: Build documentation | ||
name: Deploy preview documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Wait for dev documentation to deploy | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: main | ||
check-name: 'Deploy dev documentation' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
|
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ coverage: | |
default: | ||
target: auto | ||
threshold: 4% | ||
|
||
codecov: | ||
token: 86b6a2b8-9acb-4b50-b0da-04f14035d704 |
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,103 @@ | ||
|
||
# Build Workflow | ||
|
||
``` mermaid | ||
flowchart TD | ||
ProgramStart(["start"]) | ||
Geometry("Geometry or Lattice") | ||
Coupling["Coupling | ||
----------- | ||
rydberg | ||
hyperfine"] | ||
Detuning["detuning"] | ||
Rabi["rabi"] | ||
Amplitude["amplitude"] | ||
Phase["phase"] | ||
SpaceModulation("SpatialModulation | ||
---------------------- | ||
uniform | ||
scale | ||
location | ||
") | ||
Waveform{"Waveform | ||
------------ | ||
piecewise_linear | ||
piecewise_constant | ||
constant | ||
linear | ||
poly | ||
fn | ||
"} | ||
Options(["Options | ||
--------- | ||
assign | ||
batch_assign | ||
args | ||
parallelize | ||
"]) | ||
Services(["Services | ||
---------- | ||
bloqade | ||
quera | ||
braket"]) | ||
QuEraBackends(["Backends | ||
------------ | ||
mock | ||
cloud_mock | ||
aquila | ||
device"]) | ||
BraketBackends(["Backends | ||
------------ | ||
aquila | ||
local_emulator"]) | ||
BloqadeBackends(["Backends | ||
------------ | ||
python | ||
julia"]) | ||
Submit("Execution | ||
------------ | ||
run_async() | ||
run() | ||
__call__") | ||
ProgramStart -->|add_position| Geometry; | ||
Geometry --> Coupling; | ||
ProgramStart --> Coupling; | ||
Coupling --> Detuning; | ||
Coupling --> Rabi; | ||
Rabi --> Amplitude; | ||
Rabi --> Phase; | ||
Detuning --> SpaceModulation; | ||
Amplitude --> SpaceModulation; | ||
Phase --> SpaceModulation; | ||
SpaceModulation --> Waveform; | ||
Waveform --> Coupling; | ||
Waveform --> Services; | ||
Waveform --> Options; | ||
Options --> Services; | ||
Services -->|quera| QuEraBackends; | ||
Services -->|braket| BraketBackends; | ||
Services -->|bloqade| BloqadeBackends; | ||
QuEraBackends --> Submit; | ||
BraketBackends --> Submit; | ||
BloqadeBackends --> Submit; | ||
``` |
Oops, something went wrong.