Some checks failed
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 6s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 7s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 5s
WAI operation catalogue / does this change touch it (pull_request) Successful in 5s
WAI conformance / does this change touch it (pull_request) Successful in 7s
WAI energy receipts / does this change touch it (pull_request) Successful in 6s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 7s
wai-quantum command line / does this change touch it (pull_request) Successful in 6s
wai-quantum contract / does this change touch it (pull_request) Successful in 5s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 5s
wai-quantum docs, course and locales / does this change touch it (pull_request) Successful in 5s
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 10s
wai-quantum editors / does this change touch it (pull_request) Successful in 7s
wai-quantum resource estimation / does this change touch it (pull_request) Successful in 7s
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 6s
wai-quantum other formats / does this change touch it (pull_request) Successful in 11s
wai-quantum HIP member / does this change touch it (pull_request) Successful in 8s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 6s
wai-quantum OpenQASM reader / does this change touch it (pull_request) Successful in 7s
wai-quantum Metal member / does this change touch it (pull_request) Successful in 7s
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 6s
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 7s
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 6s
wai-quantum signal processor / does this change touch it (pull_request) Successful in 1m11s
wai-quantum pulse and dynamics / does this change touch it (pull_request) Successful in 6s
wai-quantum for Python / does this change touch it (pull_request) Successful in 5s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 2m28s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 3m52s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 6m15s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 6m22s
wai-quantum error correction and mitigation / does this change touch it (pull_request) Successful in 6s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 6m1s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 6m18s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 9m31s
wai-quantum-qpu / does this change touch it (pull_request) Successful in 8s
wai-quantum extension points / does this change touch it (pull_request) Successful in 7s
wai-quantum service / does this change touch it (pull_request) Successful in 7s
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 6s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 9s
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 6s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 8s
wai-quantum variational and algorithm library / does this change touch it (pull_request) Successful in 7s
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 7s
wai-quantum verdicts and repairs / does this change touch it (pull_request) Successful in 7s
wai-quantum views in agent hosts / does this change touch it (pull_request) Successful in 5s
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 8s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 6s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 7s
wai-web wasm32 / does this change touch it (pull_request) Successful in 8s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 9s
WAI Studio / does this change touch it (pull_request) Successful in 10s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 14m31s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 15m36s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Failing after 3m11s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Successful in 1m13s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Successful in 1m26s
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Successful in 33s
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Successful in 14s
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Successful in 23s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 12m43s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 4m9s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 11m37s
wai-quantum CUDA member / member · CUDA (thor) (pull_request) Successful in 1m57s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (thor) (pull_request) Successful in 47s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m18s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Failing after 2m12s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 30s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m36s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 4m32s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 6m4s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 1m55s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (pull_request) Successful in 9m57s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 8m31s
wai-quantum contract / the policy is linked, and the deprecations page reads (pull_request) Successful in 5s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 1m3s
wai-quantum command line / command line · linux (pull_request) Successful in 4m25s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 2m18s
wai-quantum contract / API compatibility · linux (pull_request) Successful in 4m4s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (pull_request) Successful in 30s
wai-quantum docs, course and locales / the course and the command line's languages · linux (pull_request) Successful in 2m10s
wai-quantum editors / editors · linux (pull_request) Successful in 2m42s
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Successful in 4m58s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Successful in 5m2s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Successful in 5m33s
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Successful in 2m13s
wai-quantum command line / command line · macos (pull_request) Successful in 1m50s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 7m18s
wai-quantum other formats / the set under wasm32-wasip2 (wasmtime) (pull_request) Successful in 2m0s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Successful in 18s
wai-quantum editors / editors · macos (pull_request) Successful in 1m16s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 27m52s
wai-quantum other formats / readers, writers and the set · linux (pull_request) Successful in 4m28s
wai-quantum OpenQASM reader / reader and corpus · linux (pull_request) Successful in 1m58s
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Successful in 49s
wai-quantum OpenQASM reader / corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m7s
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Successful in 22s
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Successful in 33s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 3m3s
wai-quantum resource estimation / estimation and calibration · linux, release (pull_request) Successful in 8m4s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 19m56s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Successful in 1m19s
WAI conformance / cargo-class corpora · macos (pull_request) Failing after 19m52s
wai-quantum Metal member / member · Metal (macos) (pull_request) Successful in 34s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 30m6s
wai-quantum contract / schemas and the committed tool lists · linux (pull_request) Successful in 20m6s
wai-quantum for Python / python · linux (pull_request) Successful in 2m34s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs under wasm32-wasip2 (wasmtime) (pull_request) Successful in 4m31s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Successful in 6m25s
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Successful in 2m27s
wai-quantum WebGPU member / member · GPU, Vulkan (thor) (pull_request) Successful in 24m55s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 16m42s
wai-quantum error correction and mitigation / codes, decoders, texts and mitigation · linux, release (pull_request) Successful in 4m45s
wai-quantum pulse and dynamics / reader, simulator and pulse jobs · linux, release (pull_request) Successful in 6m51s
wai-quantum extension points / the registry under wasm32-wasip2 (wasmtime) (pull_request) Successful in 53s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Successful in 2m16s
wai-quantum pulse and dynamics / the same bits · macos (pull_request) Successful in 1m6s
wai-quantum extension points / the registry and the example · linux (pull_request) Successful in 2m21s
wai-quantum for Python / python · macos (pull_request) Successful in 2m16s
wai-quantum-qpu / credentials in the keychain (macos) (pull_request) Successful in 38s
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Successful in 21m42s
wai-quantum service / service · macos (pull_request) Successful in 3m55s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Successful in 11s
wai-quantum service / service · linux (pull_request) Successful in 12m53s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 37m59s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 3m56s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Successful in 38s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Successful in 36s
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Successful in 55s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Successful in 13s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux, release (pull_request) Successful in 1m34s
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Successful in 15s
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Successful in 52s
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Successful in 13s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Successful in 1m29s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 4m58s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m23s
wai-quantum verdicts and repairs / the intent set and the verdict under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m15s
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Successful in 18s
wai-quantum verdicts and repairs / verdicts, repairs and the intent set · linux (pull_request) Successful in 2m42s
wai-quantum views in agent hosts / views · the page and its engine (pull_request) Successful in 5m36s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness (pull_request) Successful in 3m13s
wai-quantum views in agent hosts / views · a scripted host (pull_request) Successful in 6m14s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 57s
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Successful in 16s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 18m43s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 7m53s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 6m27s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 2m39s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 8m40s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 2m1s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 8m31s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m5s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 11m35s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 6m57s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 10m48s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Failing after 22m25s
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Successful in 1m56s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Successful in 43s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Has been cancelled
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Has been cancelled
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Has been cancelled
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Has been cancelled
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Has been cancelled
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Has been cancelled
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Has been cancelled
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Has been cancelled
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Has been cancelled
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Has been cancelled
wai-quantum service / service energy · linux packages (pull_request) Failing after 1m3s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Successful in 53s
wai-quantum pulse and dynamics / the same bits · linux-arm64 (pull_request) Has been cancelled
wai-quantum extension points / the registry and the example · linux-arm64 (pull_request) Has been cancelled
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (pull_request) Has been cancelled
wai-quantum WebGPU member / member · GPU, Vulkan (jetson-hub) (pull_request) Has been cancelled
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Has been cancelled
The course's tests are fifteen: #645's fourteen and this branch's one (git merged the two raises of the count as one). Co-Authored-By: Claude Opus 5.5 <[email protected]>
176 lines
8.1 KiB
YAML
176 lines
8.1 KiB
YAML
name: wai-quantum docs, course and locales
|
|
|
|
# The WAI Quantum documentation, the circuits course and the translations:
|
|
# - docs: wai/tools/quantum-docs/ci.sh builds the command line, the job service and
|
|
# the Python package from this checkout, starts a service, and runs check_docs.py
|
|
# over every page docs.json names (the READMEs and docs pages of the engine, the
|
|
# command line, the service, Python, the Studio, the desktop app, the editors and
|
|
# the providers, the course's lessons, the agent skill, and their translations):
|
|
# every block marked runnable run, every shown output held to the real one, every
|
|
# receipt a block writes verified, the Rust blocks built and run, every block that
|
|
# cannot run checked for the commands and flags it names, every `wai-quantum …` in
|
|
# the prose a real command, every relative link a file, every dependency shown one
|
|
# this repository's version satisfies, and every translation holding its English
|
|
# page's code;
|
|
# - course: engine::course's tests (every lesson's solution passes its own exercise
|
|
# by proof or evidence, every known wrong answer fails it for its stated reason,
|
|
# no hint or lesson gives the solution, every locale has every text and message)
|
|
# and the command line's course and locale tests, each required by name;
|
|
# - locales: every key of the Studio's words in every locale, with the same
|
|
# placeholders, each translation marked machine-assisted (no browser).
|
|
# The Studio's course in the browser, in both languages, is in wai-quantum-studio.yml.
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'wai/wai-quantum/**'
|
|
- 'wai/wai-quantum-cli/**'
|
|
- 'wai/wai-quantum-service/**'
|
|
- 'wai/wai-quantum-py/**'
|
|
- 'wai/wai-quantum-qpu/**'
|
|
- 'wai/wai-quantum-desktop/README.md'
|
|
- 'wai/quantum-studio/**'
|
|
- 'wai/tools/wai-quantum-editor/README.md'
|
|
- 'wai/tools/quantum-docs/**'
|
|
- 'wai/CHANGELOG.md'
|
|
- 'rust-toolchain.toml'
|
|
- '.github/workflows/wai-quantum-docs.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'wai/wai-quantum/**'
|
|
- 'wai/wai-quantum-cli/**'
|
|
- 'wai/wai-quantum-service/**'
|
|
- 'wai/wai-quantum-py/**'
|
|
- 'wai/wai-quantum-qpu/**'
|
|
- 'wai/wai-quantum-desktop/README.md'
|
|
- 'wai/quantum-studio/**'
|
|
- 'wai/tools/wai-quantum-editor/README.md'
|
|
- 'wai/tools/quantum-docs/**'
|
|
- 'wai/CHANGELOG.md'
|
|
- 'rust-toolchain.toml'
|
|
- '.github/workflows/wai-quantum-docs.yml'
|
|
|
|
jobs:
|
|
relevant:
|
|
name: does this change touch it
|
|
runs-on: linux
|
|
outputs:
|
|
run: ${{ steps.gate.outputs.run }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- id: gate
|
|
run: |
|
|
set -euo pipefail
|
|
r=$(python3 scripts/pr-touches-paths.py .github/workflows/wai-quantum-docs.yml \
|
|
"${{ github.event.pull_request.base.sha }}" \
|
|
"${{ github.event.pull_request.head.sha }}")
|
|
echo "this change touches the docs, the course or the locales: $r"
|
|
echo "run=$r" >> "$GITHUB_OUTPUT"
|
|
|
|
docs:
|
|
name: every command and snippet in the docs · linux
|
|
needs: relevant
|
|
if: needs.relevant.outputs.run == 'true'
|
|
runs-on: linux
|
|
timeout-minutes: 180
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Install Rust 1.99.1, and uv
|
|
shell: bash
|
|
run: |
|
|
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
|
command -v rustup >/dev/null 2>&1 || \
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.99.1
|
|
rustup toolchain install 1.99.1 --profile minimal
|
|
rustup default 1.99.1
|
|
command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
- name: Build, start a service, and run every page
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
bash wai/tools/quantum-docs/ci.sh 2>&1 | tee "$RUNNER_TEMP/docs.log"
|
|
grep -q '^every check passed$' "$RUNNER_TEMP/docs.log" || { echo "::error::a page's check failed"; exit 1; }
|
|
|
|
course:
|
|
name: the course and the command line's languages · linux
|
|
needs: relevant
|
|
if: needs.relevant.outputs.run == 'true'
|
|
runs-on: linux
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Install Rust 1.99.1
|
|
shell: bash
|
|
run: |
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
command -v rustup >/dev/null 2>&1 || \
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.99.1
|
|
rustup toolchain install 1.99.1 --profile minimal
|
|
rustup default 1.99.1
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
# A module filter is satisfied by any one test of the module, so each test is
|
|
# required by name to have run.
|
|
- name: Every solution passes, every wrong answer fails, every locale is whole
|
|
shell: bash
|
|
working-directory: wai/wai-quantum
|
|
run: |
|
|
set -euo pipefail
|
|
cargo test --locked --release --features full --lib -- engine::course:: 2>&1 | tee "$RUNNER_TEMP/course.log"
|
|
grep -qE '^test result: ok\. 15 passed; 0 failed' "$RUNNER_TEMP/course.log" || { echo "::error::the course's tests did not all pass"; exit 1; }
|
|
for t in every_solution_passes_its_exercise_and_every_known_wrong_answer_fails_it \
|
|
a_check_says_what_went_wrong_from_the_engine_and_never_shows_the_solution \
|
|
no_hint_or_lesson_gives_the_solution \
|
|
every_locale_has_every_text_and_every_message \
|
|
the_course_reads_and_every_lesson_is_in_one_unit_with_its_files \
|
|
the_schemas_name_the_fields_the_reader_takes \
|
|
a_check_is_the_same_bytes_every_time \
|
|
the_estimate_lesson_prices_the_program \
|
|
a_locale_tag_picks_the_course_s_locale \
|
|
an_exercise_outside_the_course_is_checked_as_a_lesson_is \
|
|
any_exercise_is_shown_as_a_lesson_shows_its_own \
|
|
a_malformed_exercise_is_refused_before_anything_is_checked \
|
|
every_case_binds_its_inputs_and_is_held_to_the_constraints \
|
|
a_t_count_counts_t_gates_however_they_are_written \
|
|
an_injected_error_is_corrected_from_the_qubits_and_never_read; do
|
|
grep -q "^test engine::course::tests::$t \.\.\. ok$" "$RUNNER_TEMP/course.log" || { echo "::error::$t did not run"; exit 1; }
|
|
done
|
|
- name: The command line's course and its languages
|
|
shell: bash
|
|
working-directory: wai/wai-quantum-cli
|
|
run: |
|
|
set -euo pipefail
|
|
cargo test --locked --release --bin wai-quantum -- locale:: learn:: 2>&1 | tee "$RUNNER_TEMP/cli.log"
|
|
for t in locale::tests::the_language_is_lang_else_the_environment_s \
|
|
locale::tests::every_key_exists_in_every_locale_and_every_summary_is_translated_from_today_s_english \
|
|
locale::tests::a_label_is_padded_by_its_width_on_a_terminal \
|
|
learn::tests::progress_is_kept_in_one_file_and_marks_a_pass_once; do
|
|
grep -q "^test $t \.\.\. ok$" "$RUNNER_TEMP/cli.log" || { echo "::error::$t did not run"; exit 1; }
|
|
done
|
|
|
|
locales:
|
|
name: the Studio's words in every locale · linux
|
|
needs: relevant
|
|
if: needs.relevant.outputs.run == 'true'
|
|
runs-on: linux
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
- name: Every key in every locale, with its placeholders
|
|
shell: bash
|
|
working-directory: wai/quantum-studio
|
|
run: |
|
|
set -euo pipefail
|
|
node test/locales.test.mjs | tee "$RUNNER_TEMP/locales.log"
|
|
grep -q '^every check passed$' "$RUNNER_TEMP/locales.log" || { echo "::error::a locale is missing a key"; exit 1; }
|