Skip to content

Commit 9a82bb6

Browse files
Merge pull request #24 from Zipstack/feat/paginate-list-helpers
UN-3770 [MISC] Follow DRF pagination on all clone list endpoints
2 parents a35efc1 + 2f79565 commit 9a82bb6

3 files changed

Lines changed: 341 additions & 82 deletions

File tree

.github/workflows/clone-tests.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
# Actions pinned to full commit SHAs (immutable) — a moved major-version
34+
# tag can't inject unreviewed code into CI. Comment tracks the version.
35+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
36+
37+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
41+
- name: Install uv
42+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
43+
with:
44+
version: "0.6.14"
45+
enable-cache: true
46+
47+
- name: Install dependencies
48+
run: uv sync --dev --all-extras
49+
50+
- name: Create test env
51+
run: cp tests/sample.env tests/.env
52+
53+
- name: Clone tests (pytest)
54+
run: uv run pytest tests/clone/ -v

0 commit comments

Comments
 (0)