mirror of
https://github.com/huggingface/diffusers.git
synced 2025-12-06 12:34:13 +08:00
33 lines
733 B
YAML
33 lines
733 B
YAML
name: Run Torch dependency tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "src/diffusers/**.py"
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check_torch_dependencies:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.8"
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -e .
|
|
pip install torch torchvision torchaudio pytest
|
|
- name: Check for soft dependencies
|
|
run: |
|
|
pytest tests/others/test_dependencies.py
|