Skip to content

bump to gradio 6.0 (currently in dev release), make trackio compatible, and fix associated bugs #1097

bump to gradio 6.0 (currently in dev release), make trackio compatible, and fix associated bugs

bump to gradio 6.0 (currently in dev release), make trackio compatible, and fix associated bugs #1097

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Cache uv packages
uses: actions/cache@v3
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-uv-
- name: Install system dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -qy
sudo apt-get install -qy ffmpeg
- name: Install system dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
# FFmpeg installation for Windows (using chocolatey)
choco install ffmpeg -y
- name: Install Python dependencies
run: |
uv pip install --system -e .[dev,tensorboard]
uv pip install --system pytest
- name: Run tests
run: |
pytest