Skip to content

Set up examples.yml as metadata file and add workflow to check for discrepancies in pynest examples#3797

Open
jessica-mitchell wants to merge 8 commits intonest:mainfrom
jessica-mitchell:setup-example-yml
Open

Set up examples.yml as metadata file and add workflow to check for discrepancies in pynest examples#3797
jessica-mitchell wants to merge 8 commits intonest:mainfrom
jessica-mitchell:setup-example-yml

Conversation

@jessica-mitchell
Copy link
Copy Markdown
Contributor

This PR create a single source of truth for metadata about the pynest/examples in examples.yml and includes workflow that checks it's correctness at pre-release.

This file is planned to be used for several downstream workflows and Sphinx scripts.

The idea is that this yml file should be manually updated when there are changes to pynest/examples and a contributor can run the check_examples_registry.py. (instructions added to docs), to check.

But we also run a workflow in nest-simulator that checks for discrepancies between the example files and the yml file at time of pre-release (including more thorough checks). If any change has happened to one but not the other this will cause the workflow to fail.
Changes need to be manually fixed and workflow re-run.
Once the workflow passes, this triggers a downstream repo (nest-simulator-examples) to run.

Currently, the downstream repo workflows still need to be finalized, and the Sphinx extension need to be updated (obviously the file needs to exist first).

this was developed with AI (Claude code)

@jessica-mitchell jessica-mitchell added T: Enhancement New functionality, model or documentation S: Normal Handle this with default priority I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Mar 27, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Documentation Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Enhancement New functionality, model or documentation

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

1 participant