Skip to content

Commit 69957a4

Browse files
committed
adding cache for pip and for apt-get
1 parent 6bbb84f commit 69957a4

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/noise_processing.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ jobs:
2020
- uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.9.18'
23+
cache: 'pip'
2324

2425
- name: Install Python dependencies
2526
run: |
26-
python -m pip install -U pip
27-
python -m pip install -U setuptools wheel
28-
python -m pip install -r ambient_sound_analysis/requirements_noise.txt
27+
pip install -r ambient_sound_analysis/requirements_noise.txt
2928
3029
31-
- name: Install ffmpeg
32-
run: |
33-
sudo apt-get update
34-
sudo apt-get install ffmpeg
30+
# - name: Install ffmpeg
31+
# run: |
32+
# sudo apt-get update
33+
# sudo apt-get install ffmpeg
34+
35+
- uses: awalsh128/cache-apt-pkgs-action@latest
36+
with:
37+
packages: ffmpeg
3538

3639
- name: Create plots
3740
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)