Skip to content

Commit 89a4950

Browse files
authored
Add Self Hosted Runner w/ Freesurfer Installed (#68)
* add workflow to run on test data
1 parent 9423167 commit 89a4950

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run petdeface on test data
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'petdeface/**'
8+
- 'pyproject.toml'
9+
- 'uv.lock'
10+
11+
jobs:
12+
test-petdeface:
13+
runs-on: self-hosted
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.10'
23+
24+
- name: Install uv
25+
uses: astral-sh/setup-uv@v3
26+
with:
27+
version: latest
28+
29+
- name: Build package with uv
30+
run: |
31+
uv build
32+
33+
- name: Create output directory
34+
run: |
35+
mkdir -p data_defaced
36+
37+
- name: Run petdeface on test data with uv run
38+
run: |
39+
uv run --with dist/*.whl petdeface petdeface/data/ data_defaced/ --participant-label sub-01
40+

0 commit comments

Comments
 (0)