Skip to content

Commit

Permalink
chore(ci): Run cache_templateflow with a script runner
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 18, 2024
1 parent 5376caf commit 9eb9cd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
tf-cache-
- name: Get TemplateFlow's required objects
run: |
python tools/cache_templateflow.py
uv run tools/cache_templateflow.py
- uses: actions/cache@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions tools/cache_templateflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.9"
# dependencies = [
# "templateflow",
# ]
# ///
from templateflow import api as tfapi

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

0 comments on commit 9eb9cd6

Please sign in to comment.