bump to gradio 6.0 (currently in dev
release), make trackio
compatible, and fix associated bugs
#1097
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: 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 |