Skip to content

ci: run the tests on pull requests - #8

Merged
rbatista191 merged 1 commit into
mainfrom
ci/pull-request-checks
Nov 27, 2026
Merged

rbatista191 merged 1 commit into
mainfrom
ci/pull-request-checks

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

What this changes

This adds .github/workflows/ci.yml. The workflow runs on each pull request and on each push to main. Before this change, no workflow ran on pull requests.

The test job runs the commands from the Development section of the README:

  • uv run pytest
  • uv run ruff check . and uv run ruff format --check .
  • uv run mypy -p haystack_integrations.components.websearch.cloro with MYPYPATH=src
  • uv build

uv run mypy src, as the README shows it, fails on main before mypy checks a file: "Source file found twice under different module names". The cause is that the haystack_integrations namespace package has no __init__.py. The job checks the package by its name. With this command, mypy finds no issues.

Versions

Python 3.11 and 3.15. These are the oldest and the newest Python that requires-python (>=3.11) allows. The check names are test (3.11) and test (3.15).

Local test

  • uv run --python 3.11 pytest: 39 passed.
  • uv run --python 3.15 pytest: 39 passed.
  • ruff check .: all checks passed. ruff format --check .: 6 files already formatted.
  • MYPYPATH=src uv run mypy -p haystack_integrations.components.websearch.cloro: no issues in 4 source files.
  • uv build: the sdist and the wheel build.

Branch protection

After the merge, branch protection on main will require the test checks of this workflow. The publish workflow does not change. It does not run on pull requests.

Add a CI workflow. It runs on each pull request and on each push to main. Branch protection on main will require its test checks.
@rbatista191
rbatista191 merged commit 582af7d into main Nov 27, 2026
6 checks passed
@rbatista191
rbatista191 deleted the ci/pull-request-checks branch November 27, 2026 13:39
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