Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/run_on_test_data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Run petdeface on test data

on:
workflow_dispatch:
pull_request:
paths:
- 'petdeface/**'
- 'pyproject.toml'
- 'uv.lock'

jobs:
test-petdeface:
runs-on: self-hosted

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: latest

- name: Build package with uv
run: |
uv build

- name: Create output directory
run: |
mkdir -p data_defaced

- name: Run petdeface on test data with uv run
run: |
uv run --with dist/*.whl petdeface petdeface/data/ data_defaced/ --participant-label sub-01