Skip to content

ci: fix test workflow to fail on actual errors#7

Merged
4444J99 merged 2 commits intomainfrom
fix/ci-workflow
Mar 26, 2026
Merged

ci: fix test workflow to fail on actual errors#7
4444J99 merged 2 commits intomainfrom
fix/ci-workflow

Conversation

@4444J99
Copy link
Copy Markdown
Contributor

@4444J99 4444J99 commented Mar 26, 2026

Summary

  • Remove continue-on-error: true from test job — checks were always passing regardless of test/lint results
  • Remove || echo guards on pytest and ruff steps that swallowed failures
  • Fix date-dependent test in test_github_activity.py::test_main_runs that hardcoded 2026-03-05 instead of using date.today()
  • Update actions/checkout from v4 to v6

Context

Branch protection requires status checks test (3.10) and test (3.12). The workflow already produces these job names via matrix strategy, but continue-on-error: true meant the checks never actually gated anything.

Test plan

  • CI runs on this PR and produces test (3.10) and test (3.12) check names
  • Both checks report actual pass/fail status (no silent swallowing)

Generated with Claude Code

4444J99 and others added 2 commits March 20, 2026 15:08
Deploy GitHub infrastructure (CODEOWNERS, dependabot, CodeQL, secret-scan,
PR/issue templates, release-drafter, stale management, pyright config)
per SOP--the-descent-protocol.md tier requirements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove continue-on-error and || echo guards that silently swallowed
pytest and ruff failures. Update actions/checkout to v6.

Fix test_main_runs assertion to use date.today() instead of hardcoded
date that drifted from the mock's period.end value.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@4444J99 4444J99 closed this Mar 26, 2026
@4444J99 4444J99 reopened this Mar 26, 2026
@4444J99 4444J99 merged commit 9380034 into main Mar 26, 2026
2 checks passed
@4444J99 4444J99 deleted the fix/ci-workflow branch March 26, 2026 13:45
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.

1 participant