Skip to content

Commit 9eb9cd6

Browse files
committed
chore(ci): Run cache_templateflow with a script runner
1 parent 5376caf commit 9eb9cd6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
tf-cache-
145145
- name: Get TemplateFlow's required objects
146146
run: |
147-
python tools/cache_templateflow.py
147+
uv run tools/cache_templateflow.py
148148
149149
- uses: actions/cache@v4
150150
with:

tools/cache_templateflow.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/usr/bin/env python3
2+
# /// script
3+
# requires-python = ">=3.9"
4+
# dependencies = [
5+
# "templateflow",
6+
# ]
7+
# ///
28
from templateflow import api as tfapi
39

410
tfapi.get("MNI152NLin2009cAsym", resolution=2, desc="brain", suffix="mask")

0 commit comments

Comments
 (0)