properly restore
This commit is contained in:
parent
8583cb12ff
commit
4de952190a
1 changed files with 12 additions and 1 deletions
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
|
|
@ -20,9 +20,9 @@ jobs:
|
|||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ffmpeg
|
||||
python -m venv env
|
||||
source env/bin/activate
|
||||
|
|
@ -42,11 +42,14 @@ jobs:
|
|||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Restore Python build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: env
|
||||
key: ${{github.sha}}-env
|
||||
|
||||
- name: Run linters
|
||||
run: |
|
||||
source env/bin/activate
|
||||
|
|
@ -61,6 +64,14 @@ jobs:
|
|||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Restore Python build cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: env
|
||||
key: ${{github.sha}}-env
|
||||
|
||||
- name: Run unit tests with coverage
|
||||
run: |
|
||||
coverage run -m pytest tests/unit && coverage xml -o coverage-unit.xml
|
||||
|
|
|
|||
Loading…
Reference in a new issue