Download diffusers/.github/workflows/pr_dependency_test.yml from 6chan/Cobra: direct link, hf CLI and curl.
- Browser
- Download file 910 Bytes
-
https://huggingface.co/spaces/6chan/Cobra/resolve/main/diffusers/.github/workflows/pr_dependency_test.yml
- Command line
-
hf download hf://spaces/6chan/Cobra/diffusers/.github/workflows/pr_dependency_test.yml
-
curl -L -o pr_dependency_test.yml https://huggingface.co/spaces/6chan/Cobra/resolve/main/diffusers/.github/workflows/pr_dependency_test.yml
910 Bytes
| name: Run 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_dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.8" | |
| - name: Install dependencies | |
| run: | | |
| python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH" | |
| python -m pip install --upgrade pip uv | |
| python -m uv pip install -e . | |
| python -m uv pip install pytest | |
| - name: Check for soft dependencies | |
| run: | | |
| python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH" | |
| pytest tests/others/test_dependencies.py | |