Repository navigation
64 lines (57 loc) · 2.52 KB
/
Copy pathplugin-dirsql-embedding-ci.yml
File metadata and controls
64 lines (57 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Plugin dirsql-embedding CI
# All PR verification for plugins/dirsql-plugin-embeddings: the
# testing-conventions gate suite (unit tier, lint, coverage, mutation,
# e2e attestation) and the integration matrix. The workflow's own file is
# deliberately absent from paths -- editing a workflow must not run it, so
# each glob stays observable against an empty baseline.
on:
push:
branches: [main]
paths:
- 'plugins/dirsql-plugin-embeddings/**'
- '.github/workflows/plugin-dirsql-embedding-ci.yml'
pull_request:
paths:
- 'plugins/dirsql-plugin-embeddings/src/**'
- 'plugins/dirsql-plugin-embeddings/tests/**'
- 'plugins/dirsql-plugin-embeddings/pyproject.toml'
# Gate config and attestation receipts feed the conventions job: an
# unknown config key fails every gate, and e2e-verify walks the
# receipts for freshness.
- 'plugins/dirsql-plugin-embeddings/testing-conventions.toml'
- 'plugins/dirsql-plugin-embeddings/e2e-attestations/**'
- '.github/workflows/plugin-dirsql-embedding-ci.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
plugins-embeddings:
uses: thekevinscott/testing-conventions/.github/workflows/testing-conventions.yml@v0
with:
languages: '["python"]'
source: plugins/dirsql-plugin-embeddings/src
config: plugins/dirsql-plugin-embeddings/testing-conventions.toml
base: ${{ github.event.pull_request.base.sha || 'origin/main' }}
gates: '["colocated-test", "one-function-per-file", "unit-lint", "integration-lint", "unit-coverage", "mutation", "e2e-verify"]'
embeddings-integration:
# The conventions job runs the plugin's colocated unit tier and checks its
# e2e attestation, but nothing there runs tests/integration/ — the tier
# that proves the worker protocol over real pipes and each
# `[project.scripts]` target is importable and runnable as declared.
name: dirsql-plugin-embeddings integration tests
runs-on: ubuntu-latest
strategy:
matrix:
# Low leg = the plugin's `requires-python` floor.
python-version: ["3.10", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Run integration tests
run: uv run --with-editable . python -m pytest tests/integration/ -x -q --tb=short
working-directory: plugins/dirsql-plugin-embeddings