Skip to content

ci: split integration tests into path-filtered workflow#240

Open
juliendenize wants to merge 3 commits into
mainfrom
ci/split-integration-tests
Open

ci: split integration tests into path-filtered workflow#240
juliendenize wants to merge 3 commits into
mainfrom
ci/split-integration-tests

Conversation

@juliendenize

Copy link
Copy Markdown
Contributor

Summary

Split the integration_tests CI job into two separate concerns to reduce CI time on most PRs.

Changes

lint_build_test.yaml — replaced integration_tests with parity_tests:

  • Always runs on every PR (no path filter)
  • Runs only tests/integrations/chat_templates/transformers/ — ensures mistral-common and HuggingFace transformers stay aligned

New integration_tests.yaml — path-filtered full integration tests:

  • Only triggers when integration-specific files change:
    • src/mistral_common/integrations/**
    • tests/integrations/**
    • pyproject.toml / uv.lock
  • Excludes parity tests (--ignore=tests/integrations/chat_templates/transformers) since they're already covered by the main workflow
  • Always runs on push to main as safety net

Behavior

PR changes parity_tests integration_tests
Core src (tokens/, protocol/) Runs Skipped
Integration files Runs Runs
Non-integration tests only Runs Skipped
Push to main Runs Runs

- Replace integration_tests job with parity_tests in main workflow
  (always runs, only tests/integrations/chat_templates/transformers/)
- Add integration_tests.yaml with paths filter: only triggers on
  integration file or dependency changes
- Parity tests excluded from integration_tests.yaml (already covered)
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