external folder

This commit is contained in:
Jesse Bannon 2022-09-26 10:19:54 -07:00
parent 4de952190a
commit b2d0d54a8e

View file

@ -23,15 +23,20 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get install -y ffmpeg sudo apt-get install -y --download-only ffmpeg
python -m venv env python -m venv /opt/env
source env/bin/activate source /opt/env/bin/activate
pip install -e .[lint,test] pip install -e .[lint,test]
- name: Save Python build cache - name: Save Python build cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: env path: /opt/env
key: ${{github.sha}}-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: test-lint:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -47,12 +52,12 @@ jobs:
- name: Restore Python build cache - name: Restore Python build cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: env path: /opt/env
key: ${{github.sha}}-env key: ${{github.sha}}-env
- name: Run linters - name: Run linters
run: | run: |
source env/bin/activate source /opt/env/bin/activate
./tools/linter check ./tools/linter check
test-unit: test-unit: