Unet head option #83
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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.9.5" | |
| - name: Install dependencies | |
| run: | | |
| uv sync --python 3.12 --extra dev | |
| source .venv/bin/activate | |
| - name: Run tests (without weights) | |
| run: | | |
| source .venv/bin/activate | |
| pytest -v tests/ -m "not slow" | |
| - name: Run tests (with weights - slow) | |
| run: | | |
| source .venv/bin/activate | |
| pytest -v tests/ -m slow |