fix(ci): green the check pipeline #1

Closed
jmz wants to merge 1 commit from fix/ci-green into main
Owner

Fixes the check workflow so pytest and ruff both pass.

Changes

  • .forgejo/workflows/check.yml — extra-index-url credentials now use ${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }} instead of the unreliable github.actor. This is the primary fix: the private PyPI (hosting ktui) was returning 401 and install died in ~15s.
  • tests/conftest.py — deterministic clock: autouse fixture freezes today to 2026-06-15 (matching the June-2026 .ics fixtures) via freezegun.freeze_time(..., tick=True). tick=True is required so the monotonic clock keeps advancing and Textual/asyncio app.run_test() does not deadlock.
  • pyproject.toml — add freezegun>=1.5 to dev deps; pin [tool.ruff.lint] select = ["E4","E7","E9","F"] (ruff's documented default). Newer ruff builds were enabling ~413 rules by default (DTZ/I/UP/…) the project never opted into; pinning restores author intent and makes CI version-stable.

Local: 272 passed; ruff check . = All checks passed!

Fixes the `check` workflow so pytest and ruff both pass. ## Changes - **.forgejo/workflows/check.yml** — extra-index-url credentials now use `${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}` instead of the unreliable `github.actor`. This is the primary fix: the private PyPI (hosting `ktui`) was returning 401 and install died in ~15s. - **tests/conftest.py** — deterministic clock: autouse fixture freezes today to 2026-06-15 (matching the June-2026 .ics fixtures) via `freezegun.freeze_time(..., tick=True)`. `tick=True` is required so the monotonic clock keeps advancing and Textual/asyncio `app.run_test()` does not deadlock. - **pyproject.toml** — add `freezegun>=1.5` to dev deps; pin `[tool.ruff.lint] select = ["E4","E7","E9","F"]` (ruff's documented default). Newer ruff builds were enabling ~413 rules by default (DTZ/I/UP/…) the project never opted into; pinning restores author intent and makes CI version-stable. Local: 272 passed; `ruff check .` = All checks passed!
fix(ci): green the check pipeline
Some checks failed
check / check (push) Failing after 11s
check / check (pull_request) Failing after 12s
bab9454c06
Author
Owner

Closing — superseded on main, where the check pipeline is green (check / check (push) success at e5ba938). The failures were fixed differently: ruff drift by pinning ruff>=0.6,<0.16 (dd24413) instead of an explicit select; the date-dependent tests by e487dfe/#3 (tests pass since= and compute dates relative to today) instead of a global freezegun fixture; and the ktui resolution by 3d9d916 (jmz-ktui). One piece of this PR is not on main: github.actor -> secrets.REGISTRY_USER in the extra-index URL. CI passes without it, so re-raise it separately if it matters. The PR no longer merges cleanly.

Closing — superseded on main, where the check pipeline is green (`check / check (push)` success at e5ba938). The failures were fixed differently: ruff drift by pinning `ruff>=0.6,<0.16` (dd24413) instead of an explicit `select`; the date-dependent tests by e487dfe/#3 (tests pass `since=` and compute dates relative to today) instead of a global freezegun fixture; and the ktui resolution by 3d9d916 (jmz-ktui). One piece of this PR is not on main: `github.actor` -> `secrets.REGISTRY_USER` in the extra-index URL. CI passes without it, so re-raise it separately if it matters. The PR no longer merges cleanly.
jmz closed this pull request 2026-10-06 12:07:43 +00:00
Some checks failed
check / check (push) Failing after 11s
check / check (pull_request) Failing after 12s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/kal!1
No description provided.