Skip to content

chore[pre-commit]: pre_commit autoupdate #91

chore[pre-commit]: pre_commit autoupdate

chore[pre-commit]: pre_commit autoupdate #91

Workflow file for this run

name: Pytest/GPU Workflow
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
defaults:
run:
shell: bash
env:
PYTHON_VERSION: "3.12"
UV_TORCH_BACKEND: "auto"
concurrency:
group: pytest-gpu-test-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
run-gpu-tests:
name: Testing
if: github.event_name == 'push' || !github.event.pull_request.draft
timeout-minutes: 20
runs-on: Roboflow-GPU-VM-Runner
steps:
- name: 🖥️ Print GPU information
run: nvidia-smi
- name: 📥 Checkout the repository
uses: actions/checkout@v6
- name: 🐍 Install uv and set Python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
activate-environment: true
- name: 🚀 Install Packages
run: uv sync --group tests --group ci-gpu-pin
- name: 🧪 Run the Test
run: |
uv run --no-sync pytest tests/ \
-m gpu \
-n 2 \
--cov=rfdetr_plus --cov-report=xml
- name: 📊 Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: "coverage.xml"
flags: gpu,${{ runner.os }},py${{ env.PYTHON_VERSION }}
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
- name: 🧹 Minimize uv cache
run: uv cache prune --ci