File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Clone Tests
2+
3+ # Focused, fast signal for the clone tooling — runs only the clone suite when
4+ # clone code, its tests, or the dependency set changes. The full suite in
5+ # test.yml still runs on every PR; this gates the pagination page-following
6+ # logic (client._paginate) that silently truncates a migration if it regresses.
7+ on :
8+ pull_request :
9+ branches : [main, "feat/**", "fix/**"]
10+ paths :
11+ - " src/unstract/clone/**"
12+ - " tests/clone/**"
13+ - " pyproject.toml"
14+ - " uv.lock"
15+ - " .github/workflows/clone-tests.yml"
16+ push :
17+ branches : [main]
18+ paths :
19+ - " src/unstract/clone/**"
20+ - " tests/clone/**"
21+ - " pyproject.toml"
22+ - " uv.lock"
23+ - " .github/workflows/clone-tests.yml"
24+
25+ jobs :
26+ clone-tests :
27+ runs-on : ubuntu-latest
28+ strategy :
29+ fail-fast : false
30+ matrix :
31+ python-version : ["3.11", "3.12"]
32+ steps :
33+ - uses : actions/checkout@v4
34+
35+ - uses : actions/setup-python@v5
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+
39+ - name : Install uv
40+ uses : astral-sh/setup-uv@v6
41+ with :
42+ version : " 0.6.14"
43+ enable-cache : true
44+
45+ - name : Install dependencies
46+ run : uv sync --dev --all-extras
47+
48+ - name : Create test env
49+ run : cp tests/sample.env tests/.env
50+
51+ - name : Clone tests (pytest)
52+ run : uv run pytest tests/clone/ -v
You can’t perform that action at this time.
0 commit comments