Skip to content

Commit 68a560f

Browse files
Merge pull request #25 from Zipstack/ci/clone-tests-workflow
UN-3770 [CI] Add focused clone test workflow
2 parents 718f789 + 64d4cb5 commit 68a560f

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/clone-tests.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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

0 commit comments

Comments
 (0)