Skip to content

ci: add GitHub Actions workflow (test + lint) - #88

Open
LiberiFatali wants to merge 1 commit into
FSoft-AI4Code:mainfrom
LiberiFatali:feat/ci-pip
Open

ci: add GitHub Actions workflow (test + lint)#88
LiberiFatali wants to merge 1 commit into
FSoft-AI4Code:mainfrom
LiberiFatali:feat/ci-pip

Conversation

@LiberiFatali

Copy link
Copy Markdown
Contributor

Adds .github/workflows/ci.yml with two blocking jobs on PRs to main and pushes to main:

  • test: installs the pinned requirements.txt (deterministic on pydantic-ai 1.0.6) + dev tools, installs the package with --no-deps so pip never re-resolves dependency floors, runs pytest.
  • lint: runs ruff check (github-format annotations) and ruff format --check on only the .py files changed in the PR, so pre-existing repo-wide debt never blocks unrelated PRs.

Validated via a fork-internal test run (LiberiFatali/CodeWiki#1).

Note: the 4 test_prompt_caching.py failures in the test job are expected until #87 (the version-adaptive _map_messages fix) merges; they resolve automatically once this branch is rebased on top of it.

Two blocking jobs on PRs to main and pushes to main, using the pinned
requirements.txt so runs are deterministic on pydantic-ai 1.0.6:
- test: installs the freeze + dev tools, installs the package with
  --no-deps so pip never re-resolves dependency floors, runs pytest.
- lint: runs ruff check (github-format annotations) and ruff format
  --check on only the .py files changed in the PR, so pre-existing
  repo-wide debt never blocks unrelated PRs.
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