Skip to content

Commit c827e94

Browse files
authored
[Workflows] remove installation of libsndfile1-dev and libgl1 from workflows (#7543)
* remove libsndfile1-dev and libgl1 from workflows and ensure that re present in the respective dockerfiles. * change to self-hosted runner; let's see 🤞 * add libsndfile1-dev libgl1 for now * use self-hosted runners for building and push too.
1 parent 44f6b85 commit c827e94

File tree

12 files changed

+12
-19
lines changed

12 files changed

+12
-19
lines changed

.github/workflows/benchmark.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
nvidia-smi
3232
- name: Install dependencies
3333
run: |
34-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
3534
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3635
python -m uv pip install -e [quality,test]
3736
python -m uv pip install pandas peft

.github/workflows/build_docker_images.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020

2121
jobs:
2222
test-build-docker-images:
23-
runs-on: ubuntu-latest
23+
runs-on: [ self-hosted, intel-cpu, 8-cpu, ci ]
2424
if: github.event_name == 'pull_request'
2525
steps:
2626
- name: Set up Docker Buildx
@@ -50,7 +50,7 @@ jobs:
5050
if: steps.file_changes.outputs.all != ''
5151

5252
build-and-push-docker-images:
53-
runs-on: ubuntu-latest
53+
runs-on: [ self-hosted, intel-cpu, 8-cpu, ci ]
5454
if: github.event_name != 'pull_request'
5555

5656
permissions:

.github/workflows/nightly_tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070

7171
- name: Install dependencies
7272
run: |
73-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
7473
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7574
python -m uv pip install -e [quality,test]
7675
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -131,7 +130,6 @@ jobs:
131130

132131
- name: Install dependencies
133132
run: |
134-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
135133
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
136134
python -m uv pip install -e [quality,test]
137135
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -202,7 +200,6 @@ jobs:
202200

203201
- name: Install dependencies
204202
run: |
205-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
206203
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
207204
python -m uv pip install -e [quality,test]
208205
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -262,7 +259,6 @@ jobs:
262259

263260
- name: Install dependencies
264261
run: |
265-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
266262
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
267263
python -m uv pip install -e [quality,test]
268264
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git

.github/workflows/pr_test_fetcher.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
fetch-depth: 0
3333
- name: Install dependencies
3434
run: |
35-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
3635
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
3736
python -m uv pip install -e [quality,test]
3837
- name: Environment
@@ -89,7 +88,6 @@ jobs:
8988

9089
- name: Install dependencies
9190
run: |
92-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
9391
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
9492
python -m pip install -e [quality,test]
9593
python -m pip install accelerate
@@ -147,7 +145,6 @@ jobs:
147145

148146
- name: Install dependencies
149147
run: |
150-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
151148
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
152149
python -m pip install -e [quality,test]
153150

.github/workflows/pr_test_peft_backend.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ jobs:
8989

9090
- name: Install dependencies
9191
run: |
92-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
9392
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
9493
python -m uv pip install -e [quality,test]
9594
if [ "${{ matrix.lib-versions }}" == "main" ]; then

.github/workflows/pr_tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ jobs:
116116

117117
- name: Install dependencies
118118
run: |
119-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
120119
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
121120
python -m uv pip install -e [quality,test]
122121
python -m uv pip install accelerate
@@ -147,6 +146,7 @@ jobs:
147146
- name: Run fast Flax TPU tests
148147
if: ${{ matrix.config.framework == 'flax' }}
149148
run: |
149+
apt-get update && apt-get install libsndfile1-dev libgl1 -y
150150
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
151151
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
152152
-s -v -k "Flax" \
@@ -205,7 +205,6 @@ jobs:
205205

206206
- name: Install dependencies
207207
run: |
208-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
209208
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
210209
python -m uv pip install -e [quality,test]
211210

.github/workflows/push_tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
nvidia-smi
7272
- name: Install dependencies
7373
run: |
74-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
74+
7575
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7676
python -m uv pip install -e [quality,test]
7777
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -121,7 +121,7 @@ jobs:
121121

122122
- name: Install dependencies
123123
run: |
124-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
124+
125125
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
126126
python -m uv pip install -e [quality,test]
127127
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -171,7 +171,7 @@ jobs:
171171

172172
- name: Install dependencies
173173
run: |
174-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
174+
175175
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
176176
python -m uv pip install -e [quality,test]
177177
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -222,7 +222,7 @@ jobs:
222222

223223
- name: Install dependencies
224224
run: |
225-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
225+
226226
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
227227
python -m uv pip install -e [quality,test]
228228
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git
@@ -270,7 +270,7 @@ jobs:
270270

271271
- name: Install dependencies
272272
run: |
273-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
273+
274274
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
275275
python -m uv pip install -e [quality,test]
276276
python -m uv pip install accelerate@git+https://github.com/huggingface/accelerate.git

.github/workflows/push_tests_fast.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868

6969
- name: Install dependencies
7070
run: |
71-
apt-get update && apt-get install libsndfile1-dev libgl1 -y
7271
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
7372
python -m uv pip install -e [quality,test]
7473

docker/diffusers-flax-cpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt update && \
1212
curl \
1313
ca-certificates \
1414
libsndfile1-dev \
15+
libgl1 \
1516
python3.8 \
1617
python3-pip \
1718
python3.8-venv && \

docker/diffusers-flax-tpu/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt update && \
1212
curl \
1313
ca-certificates \
1414
libsndfile1-dev \
15+
libgl1 \
1516
python3.8 \
1617
python3-pip \
1718
python3.8-venv && \

0 commit comments

Comments
 (0)