Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/action-common-python-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ runs:
python-version: ${{ inputs.python-version }}
architecture: ${{ inputs.python-architecture }}

- name: Install Poetry
uses: abatilo/actions-poetry@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
32 changes: 17 additions & 15 deletions .github/workflows/checks.yml
Comment thread
BatmanAoD marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Install protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: '3.20.1'
version: '21.0'
- name: Install libquil
run: |
sudo ./scripts/install-libquil
- uses: syphar/restore-virtualenv@v1
# may protect against linking failure: no space left on device
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
Expand All @@ -38,17 +37,19 @@ jobs:
- uses: knope-dev/action@v2.1.0
with:
version: 0.21.3
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: '3.13'
- uses: abatilo/actions-poetry@v4
enable-cache: true
cache-dependency-glob: crates/lib/uv.lock

- name: Run CI Flow
env:
CARGO_MAKE_RUN_CHECK_FORMAT: true
CARGO_MAKE_RUN_CLIPPY: true
CARGO_MAKE_BUILD_EXAMPLES: true
run: cargo make --cwd crates/lib --makefile Makefile.toml ci-flow
run: |
cargo make --cwd crates/lib --makefile Makefile.toml ci-flow

check-python:
name: Run Python Checks
Expand All @@ -61,14 +62,13 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: Install protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: '3.20.1'
version: '21.0'
- name: Install libquil
run: |
sudo ./scripts/install-libquil
- uses: syphar/restore-virtualenv@v1
# may protect against linking failure: no space left on device
- name: Delete huge unnecessary tools folder
run: rm -rf /opt/hostedtoolcache
Expand All @@ -80,11 +80,13 @@ jobs:
with:
version: 0.21.3

- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: '3.13'

- uses: abatilo/actions-poetry@v4
enable-cache: true
cache-dependency-glob: crates/lib/uv.lock

- name: Test Python Package
run: cargo make --cwd crates/lib --makefile Makefile.toml test-python-package
shell: bash
run: |
cargo make --cwd crates/lib --makefile Makefile.toml test-python-package
15 changes: 7 additions & 8 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip

- uses: Swatinem/rust-cache@v2
- name: Install cargo-make
uses: taiki-e/install-action@cargo-make
- uses: syphar/restore-virtualenv@v1

- name: Install Poetry
uses: abatilo/actions-poetry@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: crates/lib/uv.lock

- name: Build qcs-sdk-python documentation
run: cargo make --cwd crates/lib document-python-package
run: |
cargo make --cwd crates/lib document-python-package

- name: Deploy preview
if: ${{ github.event_name == 'pull_request' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Install protoc
uses: arduino/setup-protoc@v1
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: '3.20.1'
version: '21.0'
- uses: Swatinem/rust-cache@v2
- run: cargo publish -p qcs --locked --token ${{ secrets.CRATES_IO_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
.envrc
venv/
.venv
# Local `uv` cache; see `UV_CACHE_DIR` in crates/lib/Makefile.toml.
.uv-cache

# IDEs
.idea
Expand Down
Loading
Loading