This commit is contained in:
Jesse Bannon 2022-09-26 10:09:32 -07:00
parent 39a7c417c2
commit 8583cb12ff

View file

@ -20,13 +20,18 @@ jobs:
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y ffmpeg sudo apt-get install -y ffmpeg
python -m pip install --upgrade pip python -m venv env
source env/bin/activate
pip install -e .[lint,test] pip install -e .[lint,test]
- name: Save Python build cache
uses: actions/cache@v3
with:
path: env
key: ${{github.sha}}-env
test-lint: test-lint:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -37,8 +42,14 @@ jobs:
contents: read contents: read
steps: steps:
- name: Restore Python build cache
uses: actions/cache@v3
with:
path: env
key: ${{github.sha}}-env
- name: Run linters - name: Run linters
run: | run: |
source env/bin/activate
./tools/linter check ./tools/linter check
test-unit: test-unit: