Repository navigation
refactor(deps): consolidate hydra-core to core dependencies
#22
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: CI testing | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| env: | |
| UV_TORCH_BACKEND: cpu | |
| jobs: | |
| core-import: | |
| uses: ./.github/workflows/build-package.yml | |
| tests-cpu: | |
| name: Pytest | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.10', '3.12'] | |
| steps: | |
| - name: Check out source | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up UV and Python | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| version: '0.9.26' | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: true | |
| - name: Install all extras and test dependency group | |
| run: uv pip install --group tests --strict '.[inference,evaluation,train,gui,video,data]' | |
| - name: Run CPU unit tests with coverage | |
| env: | |
| PYTEST_DISABLE_PLUGIN_AUTOLOAD: '1' | |
| PYTHONHASHSEED: '0' | |
| PYTHONPATH: . | |
| run: | | |
| uv run --no-sync python -m coverage run --branch --source=cutie -m pytest tests | |
| uv run --no-sync python -m coverage report --show-missing | |
| tests-gpu: | |
| name: Pytest (GPU) | |
| runs-on: Roboflow-GPU-VM-Runner | |
| timeout-minutes: 30 | |
| env: | |
| UV_TORCH_BACKEND: auto | |
| steps: | |
| - name: Print GPU information | |
| run: nvidia-smi | |
| - name: Check out source | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up UV and Python | |
| uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 | |
| with: | |
| version: '0.9.26' | |
| python-version: '3.12' | |
| activate-environment: true | |
| - name: Install all extras and test dependency group | |
| run: uv pip install --group tests --strict '.[inference,evaluation,train,gui,video,data]' | |
| - name: Run GPU-accelerated device-parity tests | |
| env: | |
| PYTEST_DISABLE_PLUGIN_AUTOLOAD: '1' | |
| PYTHONHASHSEED: '0' | |
| PYTHONPATH: . | |
| run: uv run --no-sync pytest tests |