Skip to content

Commit de9adb9

Browse files
authored
clean dep installation step in push_tests (#7382)
* clean dep installation step in push_tests * fix: deps
1 parent bf861e6 commit de9adb9

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/push_tests.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,28 @@ env:
2121
jobs:
2222
setup_torch_cuda_pipeline_matrix:
2323
name: Setup Torch Pipelines CUDA Slow Tests Matrix
24-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
25-
container:
26-
image: diffusers/diffusers-pytorch-cpu # this is a CPU image, but we need it to fetch the matrix
27-
options: --shm-size "16gb" --ipc host
24+
runs-on: ubuntu-latest
2825
outputs:
2926
pipeline_test_matrix: ${{ steps.fetch_pipeline_matrix.outputs.pipeline_test_matrix }}
3027
steps:
3128
- name: Checkout diffusers
3229
uses: actions/checkout@v3
3330
with:
3431
fetch-depth: 2
32+
- name: Set up Python
33+
uses: actions/setup-python@v4
34+
with:
35+
python-version: "3.8"
3536
- name: Install dependencies
3637
run: |
37-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
38-
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
39-
python -m uv pip install -e [quality,test]
40-
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
41-
42-
- name: Environment
43-
run: |
44-
python utils/print_env.py
45-
38+
pip install -e .
39+
pip install huggingface_hub
4640
- name: Fetch Pipeline Matrix
4741
id: fetch_pipeline_matrix
4842
run: |
4943
matrix=$(python utils/fetch_torch_cuda_pipeline_test_matrix.py)
5044
echo $matrix
5145
echo "pipeline_test_matrix=$matrix" >> $GITHUB_OUTPUT
52-
5346
- name: Pipeline Tests Artifacts
5447
if: ${{ always() }}
5548
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)