diff --git a/.github/workflows/run_on_test_data.yaml b/.github/workflows/run_on_test_data.yaml new file mode 100644 index 0000000..6bd981e --- /dev/null +++ b/.github/workflows/run_on_test_data.yaml @@ -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 +