Skip to content

test: add example transpile test suite and CI workflow - #2

Merged
hyperfinitism merged 2 commits into
mainfrom
chore/example-tests
Jul 29, 2026
Merged

test: add example transpile test suite and CI workflow#2
hyperfinitism merged 2 commits into
mainfrom
chore/example-tests

Conversation

@hyperfinitism

Copy link
Copy Markdown
Member

This PR adds a pytest suite (examples/test_examples.py) that transpiles every template in examples/, executes the emitted nodes, and verifies their reflective properties — the quine prints its own exact source, and the hash quines print the actual SHA-256 of their peer's generated source. A new test.yaml workflow runs the suite on CI.

Add a concurrency block to .github/workflows/ruff.yml to group runs by
workflow and ref and cancel any in-progress runs.

Signed-off-by: Takuma IMAMURA <takuma.imamura@acompany-ac.com>
Signed-off-by: Takuma IMAMURA <takuma.imamura@acompany-ac.com>
@hyperfinitism hyperfinitism self-assigned this Jul 29, 2026
@hyperfinitism
hyperfinitism merged commit 93f59c3 into main Jul 29, 2026
3 checks passed
@hyperfinitism
hyperfinitism deleted the chore/example-tests branch July 29, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant