adding cache?
@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: [3.5, 3.6, 3.7, 3.8]
+ python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
@@ -22,10 +22,20 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
+ - uses: actions/cache@v1
+ id: cache
+ with:
+ path: ~/.cache/pip
+ key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/*requirements.txt') }}
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.python-version }}-pip-
+ - name: Install binaries
+ run: |
+ sudo apt-get update && sudo apt-get install ffmpeg sox
- name: Install dependencies
+ if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip
- sudo apt-get update && sudo apt-get install ffmpeg sox
pip install -r requirements.txt
pip install -r extra_requirements.txt
pip install vamp
