try env
This commit is contained in:
parent
39a7c417c2
commit
8583cb12ff
1 changed files with 13 additions and 2 deletions
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue