Skip to content

v1.0.0: CI on the EBC template, documentation with Sphinx + MyST - #78

Merged
PatrickHenkel1 merged 1 commit into
refactoring_v1.0.0from
v1/ci-template-sphinx
Nov 6, 2026
Merged

PatrickHenkel1 merged 1 commit into
refactoring_v1.0.0from
v1/ci-template-sphinx

Conversation

@PatrickHenkel1

Copy link
Copy Markdown
Collaborator

This PR moves physXAI's CI to the shared institute template RWTH-EBC/ci_templates, as AgentLib and AgentLib-MPC already do. It also moves the documentation from MkDocs to Sphinx + MyST, which the template builds and publishes.

Workflows

File Content
ci.yml (new) Calls ci_pipeline.yml@main: Linux tests 3.11–3.13 (unittests, [dev,agentlib], so the AgentLib contract tests run too), coverage, package build, pylint/ruff reports, Sphinx docs, GitHub Pages. PYPI_RELEASE: false for now.
windows.yml (new) The template only runs on Ubuntu. This file runs the unit tests on Windows (3.11–3.13) and checks a non-editable installation (verify_installation.py) on Ubuntu and Windows.
verify_executables.yml Smoke runs of the changed executables through unittests/smoke_executables.py, which limits every keras fit to one epoch and suppresses plots. The scripts themselves are unchanged. Ubuntu + Windows with Python 3.12. Locally every script takes ≤ 25 s.
quality.yml Strict checks. The template's ruff/pylint only report (--exit-zero), and its Sphinx build does not fail on warnings. Here: ruff check on package, tests and executables, plus sphinx-apidoc + sphinx-build -W with the template's Sphinx version (6.2.1).
removed pytest_coverage.yml (badge commit into the branch), verify_installation.yml (moved to windows.yml), gh-pages.yml (MkDocs deploy, which conflicts with the template's gh-pages branch).
kept version_check.yml (tag = version, CHANGELOG entry).

on: push replaces the special handling for stacked PRs.

Documentation

  • docs/source/conf.py mirrors AgentLib-MPC: sphinx_rtd_theme, Napoleon (Google docstrings) and autodoc_pydantic, plus MyST for Markdown.
  • The user guide and the migration guide stay in Markdown under docs/source/. index.md includes the README.
  • The API reference is generated by the template with sphinx-apidoc (docs/source/code, not versioned).
  • Locally sphinx-build -W builds without warnings. Changes needed for that:
    • no duplicates for re-exported names or Attributes: sections;
    • no inherited keras docstrings;
    • one docstring fixed.
  • README badges and links now point to https://rwth-ebc.github.io/physXAI/main/{docs,coverage,pylint}/….

Settings needed after the merge (repository admin)

  1. GitHub Pages: set Settings → Pages to the branch gh-pages, folder /docs. Today it deploys via Actions. The template's gh_pages job creates and maintains gh-pages on the first push.
  2. Actions → General → Workflow permissions: read and write (ci.yml also declares contents: write).
  3. Required status checks: set them again, the names are now e.g. ci / tests / ..., tests (3.12), lint, docs.

Note

AgentLib-MPC installs physXAI @ git+https://github.com/RWTH-EBC/physXAI.git (main) in every CI run. Merging 1.0.0 into main therefore affects their tests/test_physXAI_plugin immediately. Locally those tests are green with 1.0.

This is the first of three PRs before the release. Next: bugfixes, the PINN loss and removing legacy code; then the physics features (trainable residuals, PCNN).

🤖 Generated with Claude Code

… Sphinx + MyST

- ci.yml calls the shared template like AgentLib / AgentLib-MPC: Linux tests 3.11-3.13 (unittests,
  [dev,agentlib]), coverage, build, pylint/ruff reports, Sphinx docs, GitHub Pages (gh-pages branch)
- windows.yml: unit tests on Windows, installation check on Linux and Windows
- verify_executables.yml: smoke run with one epoch (unittests/smoke_executables.py), ubuntu + windows
- quality.yml: strict ruff and Sphinx build (-W) with the template's Sphinx version
- removed pytest_coverage.yml (badge commits), verify_installation.yml, gh-pages.yml (MkDocs)
- docs: MkDocs -> Sphinx (docs/source/conf.py, MyST guide pages, sphinx-apidoc API), README badges
  and links to rwth-ebc.github.io/physXAI/main/..., pylint config, docs extra

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@PatrickHenkel1
PatrickHenkel1 merged commit bb7ef8f into refactoring_v1.0.0 Nov 6, 2026
24 checks passed
@PatrickHenkel1
PatrickHenkel1 deleted the v1/ci-template-sphinx branch November 6, 2026 18:14
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.

2 participants