Skip to content

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

Merged
spencrr merged 2 commits into
mainfrom
spencrr/workflows
Apr 22, 2026
Merged

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

Conversation

@spencrr

@spencrr 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 spencrr changed the title spencrr/workflows [CI]: Add CI workflow with lint, type check, and test matrix Apr 14, 2026
@spencrr spencrr changed the base branch from main to spencrr/lint-project-files April 14, 2026 02:45
@spencrr spencrr changed the base branch from spencrr/lint-project-files to spencrr/project-metadata April 14, 2026 02:45
@spencrr 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
@spencrr spencrr force-pushed the spencrr/workflows branch from 0baca4a to da63a1e Compare April 17, 2026 09:32
Comment thread tests/fixtures.py Dismissed
Comment thread rampart/_pyrit/llm_bridge.py Dismissed
@spencrr spencrr changed the base branch from main to spencrr/pyright-fixups April 17, 2026 09:42
@spencrr spencrr force-pushed the spencrr/pyright-fixups branch from 45da61d to adf473e Compare April 20, 2026 23:46
@spencrr spencrr force-pushed the spencrr/workflows branch from da63a1e to 5a4d7d9 Compare April 21, 2026 00:12
@spencrr spencrr changed the base branch from spencrr/pyright-fixups to spencrr/fix-pytest-warnings-on-first-run April 21, 2026 00:12
@spencrr spencrr marked this pull request as ready for review April 21, 2026 00:27
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from d74cb3e to 76709c8 Compare April 21, 2026 00:39
@spencrr spencrr force-pushed the spencrr/workflows branch from 5a4d7d9 to 22f6e11 Compare April 21, 2026 00:39
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from 76709c8 to 3b75690 Compare April 21, 2026 00:40
@spencrr spencrr force-pushed the spencrr/workflows branch from 22f6e11 to 26e80ba Compare April 21, 2026 00:40
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from 3b75690 to cc3780e Compare April 21, 2026 02:06
@spencrr spencrr force-pushed the spencrr/workflows branch from 26e80ba to 161752b Compare April 21, 2026 02:07
@spencrr spencrr force-pushed the spencrr/fix-pytest-warnings-on-first-run branch from cc3780e to 8dc11b0 Compare April 21, 2026 21:29
@spencrr spencrr requested a review from a team as a code owner April 21, 2026 21:29
@spencrr spencrr force-pushed the spencrr/workflows branch from 161752b to 31ec29b Compare April 21, 2026 21:29
@spencrr spencrr force-pushed the spencrr/workflows branch from 31ec29b to b819447 Compare April 22, 2026 01:34
@spencrr spencrr changed the base branch from spencrr/fix-pytest-warnings-on-first-run to main April 22, 2026 01:34
@spencrr spencrr merged commit ed0c882 into main Apr 22, 2026
1 check passed
@spencrr 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