diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4336dc38..d7ba94d5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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