Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
34 changes: 34 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python package CI

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
lint:
uses: ./.github/workflows/run-command.yml
with:
command_name: lint
command: just lint

test:
uses: ./.github/workflows/run-command.yml
with:
command_name: test
command: just test

examples:
uses: ./.github/workflows/run-command.yml
with:
command_name: examples
command: just examples

docs:
uses: ./.github/workflows/run-command.yml
with:
command_name: docs
command: just docs
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
on:
release:
types: [created]
workflow_dispatch:

jobs:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/run-command.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Reusable setup for command

on:
workflow_call:
inputs:
command_name:
required: true
type: string
command:
required: true
type: string

jobs:
run:
name: ${{ inputs.command_name }}
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up uv & venv
uses: astral-sh/setup-uv@v5
with:
version: "0.6.6"
enable-cache: true
python-version: ${{ matrix.python-version }}
cache-dependency-glob: uv.lock

- name: Setup just
uses: extractions/setup-just@v3

- name: ${{ inputs.command_name }}
run: ${{ inputs.command }}
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ["autodoc2", "quantinuum_sphinx", "myst_nb"]
extensions = ["autodoc2", "myst_nb"]
autodoc2_packages = [
"../../tierkreis/tierkreis",
"../../tierkreis_workers/aer_worker",
Expand Down
2 changes: 1 addition & 1 deletion examples/example_workers/auth_worker/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example_workers/substitution_worker/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ test = [
"pydantic>=2.9.2",
]
docs = [
"quantinuum-sphinx",
"sphinx>=8.2",
"myst-parser>=4.0.1",
"sphinx-autodoc2>=0.5.0",
"myst-nb>=1.3.0",
"furo>=2025.7.19",
]
examples = ["pyscf>=2.9.0"]

[tool.uv.sources]
quantinuum-sphinx = { git = "https://github.com/CQCL/quantinuum-sphinx.git" }
2 changes: 1 addition & 1 deletion tierkreis/tierkreis/controller/executor/shell_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def run(
)
proc.communicate(
f"{launcher_path} {worker_call_args_path} && touch {done_path}".encode(),
timeout=3,
timeout=10,
)

def _create_env(
Expand Down
2 changes: 1 addition & 1 deletion tierkreis/tierkreis/controller/executor/stdinout.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def run(self, launcher_name: str, worker_call_args_path: Path) -> None:
)
proc.communicate(
f"{launcher_path} <{input_file} >{output_file} && touch {done_path}".encode(),
timeout=3,
timeout=10,
)
53 changes: 29 additions & 24 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.