From 4de952190a46ba6d42e453f9deb69b0fd0b447e0 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Mon, 26 Sep 2022 10:14:29 -0700 Subject: [PATCH] properly restore --- .github/workflows/ci.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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