Skip to content

Add docs build PR check; scale back test matrix on PRs#13

Merged
deeleeramone merged 4 commits into
mainfrom
claude/compassionate-mclean-82ed0e
Apr 23, 2026
Merged

Add docs build PR check; scale back test matrix on PRs#13
deeleeramone merged 4 commits into
mainfrom
claude/compassionate-mclean-82ed0e

Conversation

@deeleeramone

Copy link
Copy Markdown
Owner

docs.yml now also runs on pull_request (paths: pywry/docs/, pywry//*.py, the workflow itself) so mkdocs build --strict validates every PR before merge. Deploy job is gated to non-PR events and gets its own pages concurrency group; PR concurrency cancels superseded PR runs without ever queueing against a live deploy.

test-pywry.yml gains a gen-matrix job that emits one Python per OS on PRs without the full-test label (still 6 OS/arch combos every PR), and the full 12-leg matrix on push, workflow_dispatch, or PRs carrying full-test. fail-fast becomes true on the reduced matrix and false on the full one. pull_request now also fires on labeled/unlabeled so toggling full-test re-triggers the workflow without a fresh push.

docs.yml now also runs on pull_request (paths: pywry/docs/**, pywry/**/*.py,
the workflow itself) so mkdocs build --strict validates every PR before
merge. Deploy job is gated to non-PR events and gets its own pages
concurrency group; PR concurrency cancels superseded PR runs without ever
queueing against a live deploy.

test-pywry.yml gains a gen-matrix job that emits one Python per OS on PRs
without the full-test label (still 6 OS/arch combos every PR), and the
full 12-leg matrix on push, workflow_dispatch, or PRs carrying full-test.
fail-fast becomes true on the reduced matrix and false on the full one.
pull_request now also fires on labeled/unlabeled so toggling full-test
re-triggers the workflow without a fresh push.
@deeleeramone deeleeramone added documentation Improvements or additions to documentation actions GitHub Actions work labels Apr 23, 2026
deeleeramone added 3 commits April 22, 2026 22:40
The 0.3s sleep was occasionally too short under CI load, causing
isOpen==True at the assertion. Mirrors the poll loop already used by
test_modal_button_click_emits_event in the same file.
gen-matrix now also computes a pytest-targets output by diffing the PR
against its base branch. If the only changes are pywry/tests/test_*.py
files (and not conftest, constants, source code, or the workflow itself),
each platform's pytest invocation runs only those files. Otherwise it
runs the full suite as before. The full-test PR label and any non-PR
event still pin the full suite.

Each step also tolerates pytest exit code 5 (no tests collected) when
running scoped, since platform --ignore lists may swallow the targeted
file (e.g. test_state_redis_integration.py on Windows).
05-compute-extra.js opened _computeParabolicSAR but its closing brace
was leaking into 06-indicator-helpers.js line 1, leaving each file
individually unparseable. assets.py concatenates these with '\n' so the
runtime output is unchanged; CodeQL's per-file parser now succeeds.
@deeleeramone deeleeramone added the full-test Run the full testing suite on this PR. label Apr 23, 2026
@deeleeramone deeleeramone merged commit a44c45a into main Apr 23, 2026
22 of 28 checks passed
@deeleeramone deeleeramone deleted the claude/compassionate-mclean-82ed0e branch April 23, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

actions GitHub Actions work documentation Improvements or additions to documentation full-test Run the full testing suite on this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant