Fix red CI: install kuhy_credit, format, date
Some checks are pending
app_errors tests / test (push) Waiting to run
crdt-sync pre-commit / pre-commit (push) Waiting to run
crdt-sync tests / test (push) Waiting to run
data_transfer_flutter tests / test (push) Waiting to run
design_system tests / test (push) Waiting to run
earned_time pre-commit / pre-commit (push) Waiting to run
earned_time tests / test (push) Waiting to run
focus-project pre-commit / pre-commit (push) Waiting to run
focus-project tests / test (push) Waiting to run
freedays pre-commit / pre-commit (push) Waiting to run
freedays tests / test (push) Waiting to run
game_recording pre-commit / pre-commit (push) Waiting to run
game_recording tests / test (push) Waiting to run
gatelock pre-commit / pre-commit (push) Waiting to run
gatelock tests / test (push) Waiting to run
godot_dev_tools tests / test (push) Waiting to run
google_account_token tests / test (push) Waiting to run
holds pre-commit / pre-commit (push) Waiting to run
holds tests / test (push) Waiting to run
kuhy_credit drift / drift (push) Waiting to run
kuhy_credit tests / python (push) Waiting to run
kuhy_credit tests / web (push) Waiting to run
kuhy_credit tests / flutter (push) Waiting to run
kuhy_credit tests / godot (push) Waiting to run
leetcode-coach pre-commit / pre-commit (push) Waiting to run
leetcode-coach tests / test (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
music_theory tests / test (push) Waiting to run
omniroute_offload pre-commit / pre-commit (push) Waiting to run
palette drift / palette (push) Waiting to run
platform_location tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
shared gate tests / gate unit tests (push) Waiting to run
sickdays pre-commit / pre-commit (push) Waiting to run
sickdays tests / test (push) Waiting to run
sql-drills pre-commit / pre-commit (push) Waiting to run
sql-drills tests / test (push) Waiting to run
sync_settings_ui tests / test (push) Waiting to run
ts_config tests / test (push) Waiting to run
ts_core tests / test (push) Waiting to run
web_ui tests / test (push) Waiting to run

Bug-class-check: none — CI repair, no new bug class (kuhy 2026-11-27)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZDq7ef5JyQd7Rx3Ju
This commit is contained in:
Krzysztof Rudnicki 2026-11-28 08:04:09 +01:00
parent 2399227b4e
commit 5ed2129215
5 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@ jobs:
cache-dependency-path: app_errors/requirements.txt cache-dependency-path: app_errors/requirements.txt
- name: Install dependencies - name: Install dependencies
run: pip install -r requirements.txt && pip install --no-deps -e . run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e .
- name: Run tests - name: Run tests
run: python -m pytest -v run: python -m pytest -v

View File

@ -36,7 +36,7 @@ jobs:
run: pip install ../crdt-sync run: pip install ../crdt-sync
- name: Install dependencies - name: Install dependencies
run: pip install -r requirements.txt && pip install --no-deps -e . run: pip install --no-deps ../kuhy_credit && pip install -r requirements.txt && pip install --no-deps -e .
# No display needed: freedays draws nothing. It is policy, a JSON file # No display needed: freedays draws nothing. It is policy, a JSON file
# and a CLI. # and a CLI.

View File

@ -33,7 +33,7 @@ jobs:
# importing it pulls in tkinter, and this job has no display precisely # importing it pulls in tkinter, and this job has no display precisely
# because sickdays must work without one. # because sickdays must work without one.
- name: Install the sibling packages - name: Install the sibling packages
run: pip install ../crdt-sync && pip install --no-deps ../freedays run: pip install ../crdt-sync && pip install --no-deps ../freedays ../kuhy_credit
- name: Install dependencies - name: Install dependencies
run: pip install -r requirements.txt && pip install --no-deps -e . run: pip install -r requirements.txt && pip install --no-deps -e .

View File

@ -49,7 +49,7 @@ def test_tutor_from_is_the_day_after_the_deploy() -> None:
def test_registry_switches_on_tutor_from() -> None: def test_registry_switches_on_tutor_from() -> None:
assert earners_for(EVE) is not TUTOR_EARNERS # the waiver (ANKI_WAIVED_FROM) assert earners_for(EVE) is not TUTOR_EARNERS # the waiver (ANKI_WAIVED_FROM)
assert earners_for(None) is earners_for(datetime.now().astimezone().date()) assert earners_for(None) == earners_for(datetime.now().astimezone().date())
assert earners_for(TUTOR_FROM) is TUTOR_EARNERS assert earners_for(TUTOR_FROM) is TUTOR_EARNERS
assert "anki" not in {e.name for e in TUTOR_EARNERS} assert "anki" not in {e.name for e in TUTOR_EARNERS}
assert ladder_for(EVE) is None # the eve is pre-ladder assert ladder_for(EVE) is None # the eve is pre-ladder

View File

@ -105,7 +105,9 @@ def test_slow_wait_over_threshold_is_written(
def test_slow_wait_measures_monotonic_time(tmp_path: Path) -> None: def test_slow_wait_measures_monotonic_time(tmp_path: Path) -> None:
wall, mono = Clock(), Clock() wall, mono = Clock(), Clock()
rep = Reporter(app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono) rep = Reporter(
app="leetcode-guard", repo="r", spool=tmp_path, clock=wall, monotonic=mono
)
with rep.wait("op"): with rep.wait("op"):
wall.t += 1.5 # a clock step, not a wait wall.t += 1.5 # a clock step, not a wait
mono.t += 0.2 mono.t += 0.2