Run petdeface on test data #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |