proper restore

This commit is contained in:
Jesse Bannon 2022-09-26 10:25:45 -07:00
parent b2d0d54a8e
commit 4d61a3d279

View file

@ -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: