name: Run dependency tests on: pull_request: branches: - main paths: - "src/diffusers/**.py" - "tests/**.py" push: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true permissions: {} jobs: check_dependencies: permissions: contents: read runs-on: ubuntu-22.04 steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Set up Python uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 with: python-version: "3.10" - name: Install dependencies run: | pip install -e . pip install pytest - name: Check for soft dependencies run: | pytest tests/others/test_dependencies.py