From 4d61a3d2799840f5e95a3a5d856fe9ea7bf4afb9 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Mon, 26 Sep 2022 10:25:45 -0700 Subject: [PATCH] proper restore --- .github/workflows/ci.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f20ffd1c..91b8ce47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -74,11 +74,12 @@ jobs: - name: Restore Python build cache uses: actions/cache@v3 with: - path: env + path: /opt/env key: ${{github.sha}}-env - name: Run unit tests with coverage run: | + source /opt/env/bin/activate coverage run -m pytest tests/unit && coverage xml -o coverage-unit.xml test-soundcloud: @@ -90,8 +91,22 @@ jobs: contents: read steps: + - name: Restore Python build cache + uses: actions/cache@v3 + with: + path: /opt/env + key: ${{github.sha}}-env + + - name: Restore ffmpeg cache + uses: actions/cache@v3 + with: + path: /var/cache/apt/archives + key: ${{github.sha}}-ffmpeg + - name: Run e2e soundcloud tests with coverage run: | + sudo apt-get install -y ffmpeg + source /opt/env/bin/activate coverage run -m pytest tests/e2e/soundcloud && coverage xml -o coverage-soundcloud.xml test-youtube: