Skip to content

chore: update CI workflows for improved packaging and testing#6

Open
ElouenGinat wants to merge 2 commits intomainfrom
2-test-khisto-python-in-the-ci
Open

chore: update CI workflows for improved packaging and testing#6
ElouenGinat wants to merge 2 commits intomainfrom
2-test-khisto-python-in-the-ci

Conversation

@ElouenGinat
Copy link
Collaborator

Add CI workflow and improve pip packaging tests

Summary

This PR introduces a dedicated CI workflow for testing the Python source code and improves the wheel testing step in the pip packaging workflow.

Changes

New: .github/workflows/ci.yml

  • Adds a CI workflow triggered on pushes to main and on pull requests touching ci.yml, pyproject.toml, src/**, or tests/**
  • lint job: runs pre-commit hooks on all files
  • test job: runs the test suite against the source code across Python 3.10–3.14 using uv sync --group dev

Updated: pack-pip.yml

  • Add src/** to the path filter so packaging is triggered when source files change
  • Add a concurrency group to cancel in-progress runs on new pushes
  • Replace bare pip usage with uv for isolated, reproducible wheel testing:
    • Create a dedicated venv (.test-env)
    • Install the built wheel with all extras (khisto[all])
    • Install dev dependencies from pyproject.toml via uv sync --group dev --no-install-project (consistent with CI)
    • Run pytest without coverage to keep the check fast
  • Upgrade actions/download-artifact from v5 to v6
  • Minor formatting fixes (indentation, whitespace)

@ElouenGinat ElouenGinat linked an issue Mar 2, 2026 that may be closed by this pull request
@ElouenGinat ElouenGinat self-assigned this Mar 2, 2026
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.

Test khisto-python in the CI

1 participant