ci(tests): run unit tests on every push to feat/** branches

- Add feat/** to push branches so long-lived feature branches are
  tested on every push (they accumulate large changes before a PR)
- Drop the push path filter entirely: every push to master/develop/
  feat/** now runs the full unit suite (the old 'pkg/**' filter never
  matched the real source path 'src/langbot/pkg/**', so backend-only
  pushes silently skipped tests)
- Fix the same broken path glob on the pull_request trigger
  ('pkg/**' -> 'src/langbot/pkg/**')

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Junyan Qin
2026-05-19 23:56:17 +08:00
parent 18ad51e21e
commit 28c00cb8d1
+5 -7
View File
@@ -4,7 +4,7 @@ on:
pull_request: pull_request:
types: [opened, ready_for_review, synchronize] types: [opened, ready_for_review, synchronize]
paths: paths:
- 'pkg/**' - 'src/langbot/pkg/**'
- 'tests/**' - 'tests/**'
- '.github/workflows/run-tests.yml' - '.github/workflows/run-tests.yml'
- 'pyproject.toml' - 'pyproject.toml'
@@ -13,12 +13,10 @@ on:
branches: branches:
- master - master
- develop - develop
paths: - 'feat/**'
- 'pkg/**' # No path filter on push: every push to the branches above runs the
- 'tests/**' # full unit-test suite. feat/** branches in particular must be tested
- '.github/workflows/run-tests.yml' # on every push (they accumulate large changes before a PR exists).
- 'pyproject.toml'
- 'run_tests.sh'
jobs: jobs:
test: test: