Add path filters to CI and Docker workflows

Skip unnecessary workflow runs when only non-code files change (README,
docs, etc). Docker workflow always runs on version tags.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Louis King
2026-02-11 00:32:46 +00:00
parent 4bbf43a078
commit b52fd32106
2 changed files with 15 additions and 0 deletions

View File

@@ -3,6 +3,13 @@ name: CI
on:
pull_request:
branches: [main]
paths:
- "src/**"
- "tests/**"
- "alembic/**"
- "pyproject.toml"
- ".pre-commit-config.yaml"
- ".github/workflows/ci.yml"
jobs:
lint:

View File

@@ -3,6 +3,14 @@ name: Docker
on:
push:
branches: [main]
paths:
- "src/**"
- "alembic/**"
- "alembic.ini"
- "pyproject.toml"
- "Dockerfile"
- "docker-compose.yml"
- ".github/workflows/docker.yml"
tags:
- "v*"