Skip to content

Commit 6e79b74

Browse files
committed
add workflow
1 parent 9423167 commit 6e79b74

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: Install package with uv pip
34+
run: |
35+
uv pip install dist/*.whl
36+
37+
- name: Create output directory
38+
run: |
39+
mkdir -p data_defaced
40+
41+
- name: Run petdeface on test data
42+
run: |
43+
petdeface petdeface/data/ data_defaced/ --participant-label sub-01
44+

0 commit comments

Comments
 (0)