Repository navigation
Expand file tree
/
Copy pathconfig.yml
More file actions
75 lines (63 loc) · 1.9 KB
/
Copy pathconfig.yml
File metadata and controls
75 lines (63 loc) · 1.9 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
65
66
67
68
69
70
71
72
73
74
75
version: 2.1
orbs:
python: circleci/python@4.0.0
jobs:
build-and-test:
executor:
name: python/default
tag: '3.10' # or '3.12'
environment:
# HuggingFace: disable xet and use cache directory
# NOTE @deruyter92 2026-05-07: "xet" opens many simultaneous connections
# to different data chunks. Currently doesn't work well with CircleCI.
# See: https://github.com/huggingface/xet-core/issues/800
HF_HUB_DISABLE_XET: 1
HF_HOME: ~/.cache/huggingface
steps:
- checkout
# Restore uv cache
- restore_cache:
name: Restore uv cache
keys:
- v2-uv-pip-{{ checksum "pyproject.toml" }}
- v2-uv-pip-
# Restore HuggingFace weights cache
- restore_cache:
name: Restore Hugging Face cache
keys:
- hf-weights-v1-{{ checksum "pyproject.toml" }}
- hf-weights-v1-
# Install uv
- run:
name: Install uv
command: |
pip install uv
# Install DeepLabCut runtime deps only
- run:
name: Install DeepLabCut runtime deps only
command: |
uv pip install --system -e .
# (Optional) Trim the cache for CI so uploads stay small and fast
- run:
name: Prune uv cache for CI
command: uv cache prune --ci || true
# Save the uv cache for next runs
- save_cache:
name: Save uv cache
key: v2-uv-pip-{{ checksum "pyproject.toml" }}
paths:
- ~/.cache/uv
# Test DLC
- run:
name: TestDLC
command: python testscript_cli.py
# Save the HF weights cache for next runs
- save_cache:
name: Save huggingface cache
key: hf-weights-v1-{{ checksum "pyproject.toml" }}
paths:
- ~/.cache/huggingface
workflows:
main:
jobs:
- build-and-test