Skip to content

[CI]: Add CI workflow with lint, type check, and test matrix - #12

Merged
Spencer Schoenberg (spencrr) merged 2 commits into
mainfrom
spencrr/workflows
Apr 22, 2026
Merged

[CI]: Add CI workflow with lint, type check, and test matrix#12
Spencer Schoenberg (spencrr) merged 2 commits into
mainfrom
spencrr/workflows

Conversation

@spencrr

@spencrr Spencer Schoenberg (spencrr) commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Description

Add GitHub Actions CI workflow with lint, type checking, and test matrix across
Python 3.11–3.13.

Lint & Type Check job:

  • Runs on ubuntu-latest with Python 3.12
  • Uses uv sync --frozen for reproducible installs
  • Runs ruff check, ruff format --check, and pyright in sequence

Test matrix job:

  • Runs on Python 3.11, 3.12, and 3.13 with fail-fast: false
  • Per-version uv cache (cache-suffix: py${{ matrix.python-version }})
  • Runs pytest tests/unit with coverage collection (--cov=rampart)
  • Coverage threshold enforced via [tool.coverage.report] fail_under in pyproject.toml

Workflow configuration:

  • Triggers on push to main and PRs targeting main
  • concurrency group with cancel-in-progress: true to avoid redundant runs
  • Empty default permissions: {} with contents: read scoped per-job
  • All actions pinned by SHA with version comments

Breaking changes

None

Checklist

  • pre-commit run --all-files passes
  • Tests added or updated for changes
  • Documentation updated

@spencrr Spencer Schoenberg (spencrr) changed the title spencrr/workflows [CI]: Add CI workflow with lint, type check, and test matrix Apr 14, 2026
@spencrr
Spencer Schoenberg (spencrr) changed the base branch from main to spencrr/lint-project-files April 14, 2026 02:45
@spencrr
Spencer Schoenberg (spencrr) changed the base branch from spencrr/lint-project-files to spencrr/project-metadata April 14, 2026 02:45
@spencrr
Spencer Schoenberg (spencrr) force-pushed the spencrr/project-metadata branch 3 times, most recently from 494fcb0 to 1fe9927 Compare April 17, 2026 08:44
Base automatically changed from spencrr/project-metadata to main April 17, 2026 08:53
Comment thread tests/fixtures.py Dismissed
Comment thread rampart/_pyrit/llm_bridge.py Dismissed
@spencrr
Spencer Schoenberg (spencrr) changed the base branch from main to spencrr/pyright-fixups April 17, 2026 09:42
@spencrr
Spencer Schoenberg (spencrr) changed the base branch from spencrr/pyright-fixups to spencrr/fix-pytest-warnings-on-first-run April 21, 2026 00:12
@spencrr
Spencer Schoenberg (spencrr) marked this pull request as ready for review April 21, 2026 00:27
@spencrr
Spencer Schoenberg (spencrr) force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from d74cb3e to 76709c8 Compare April 21, 2026 00:39
@spencrr
Spencer Schoenberg (spencrr) force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from 76709c8 to 3b75690 Compare April 21, 2026 00:40
@spencrr
Spencer Schoenberg (spencrr) force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from 3b75690 to cc3780e Compare April 21, 2026 02:06
@spencrr
Spencer Schoenberg (spencrr) force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from cc3780e to 8dc11b0 Compare April 21, 2026 21:29
@spencrr
Spencer Schoenberg (spencrr) requested a review from a team as a code owner April 21, 2026 21:29
@spencrr
Spencer Schoenberg (spencrr) changed the base branch from spencrr/fix-pytest-warnings-on-first-run to main April 22, 2026 01:34
@spencrr
Spencer Schoenberg (spencrr) merged commit ed0c882 into main Apr 22, 2026
1 check passed
@spencrr
Spencer Schoenberg (spencrr) deleted the spencrr/workflows branch April 22, 2026 04:48
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