elastic / elastic/ai-github-actions

fix(ci): broaden ci-tests path filters for tested sources

Open
#1,050 0 comments 0 reactions 0 assignees View on GitHub
agentic-workflows
Dominant language
Python
Stars
11
Forks
16
Avg merge
22h 9m
Merged PRs (30d)
31

Description

## Summary
This updates the internal `ci-tests` workflow trigger filters so pytest runs when tested source files change, not only when tests change.

### Changes
- Added `claude-workflows/**` to `on.pull_request.paths` and `on.push.paths`
- Added `scripts/**` to `on.pull_request.paths` and `on.push.paths`
- Added `docs/hooks.py` to `on.pull_request.paths` and `on.push.paths`
- Kept existing trigger paths (`.github/workflows/gh-aw-fragments/**`, `tests/**`, `pyproject.toml`)

These additions align the trigger surface with code directly exercised by the test suite.

Closes #1049

## Validation
- `make lint-workflows`
- `UV_CACHE_DIR=/tmp/gh-aw/agent/uv-cache /tmp/gh-aw/agent/venv/bin/uv run --extra test pytest tests/ -v`

---
[What is this?](https://ela.st/github-ai-tools) | [From workflow: Trigger Framework Best Practices](https://github.com/elastic/ai-github-actions/actions/runs/25168570957)

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

---

> [!NOTE]
> This was originally intended as a pull request, but the git push operation failed.
>
> **Workflow Run:** [View run details and download bundle artifact](https://github.com/elastic/ai-github-actions/actions/runs/25168570957)
>
> The bundle file is available in the `agent` artifact in the workflow run linked above.

To create a pull request with the changes:

```sh
# Download the artifact from the workflow run
gh run download 25168570957 -n agent -D /tmp/agent-25168570957

# Fetch the bundle into a local branch
git fetch /tmp/agent-25168570957/aw-fix-1049-ci-tests-path-filters.bundle refs/heads/fix-1049-ci-tests-path-filters:refs/heads/fix-1049-ci-tests-path-filters-21a6eb92d863824c
git checkout fix-1049-ci-tests-path-filters-21a6eb92d863824c

# Push the branch to origin
git push origin fix-1049-ci-tests-path-filters-21a6eb92d863824c

# Create the pull request
gh pr create --title 'fix(ci): broaden ci-tests path filters for tested sources' --base main --head fix-1049-ci-tests-path-filters-21a6eb92d863824c --repo elastic/ai-github-actions
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.