From b2d0d54a8e4d9c50b05e8b0755a04d16ac52f9d1 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Mon, 26 Sep 2022 10:19:54 -0700 Subject: [PATCH] external folder --- .github/workflows/ci.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d7ba94d5..f20ffd1c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,15 +23,20 @@ jobs: - name: Install dependencies run: | - sudo apt-get install -y ffmpeg - python -m venv env - source env/bin/activate + sudo apt-get install -y --download-only ffmpeg + python -m venv /opt/env + source /opt/env/bin/activate pip install -e .[lint,test] - name: Save Python build cache uses: actions/cache@v3 with: - path: env + path: /opt/env key: ${{github.sha}}-env + - name: Save ffmpeg download cache + uses: actions/cache@v3 + with: + path: /var/cache/apt/archives + key: ${{github.sha}}-ffmpeg test-lint: runs-on: ubuntu-22.04 @@ -47,12 +52,12 @@ jobs: - name: Restore Python build cache uses: actions/cache@v3 with: - path: env + path: /opt/env key: ${{github.sha}}-env - name: Run linters run: | - source env/bin/activate + source /opt/env/bin/activate ./tools/linter check test-unit: