Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix transcription CI

Chocobozzz4376c728b14c
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 40dd5bf874..d02e64e868 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -84,20 +84,28 @@ jobs:
${{ runner.OS }}-fixtures-
${{ runner.OS }}-
- # We run out of disk space with the caches
- # - name: Cache PeerTube pip directory
- # uses: actions/cache@v4
- # with:
- # path: |
- # ~/.cache/pip
- # key: ${{ runner.OS }}-${{ matrix.test_suite }}-pip-v1
-
- # - name: Cache Hugging Face models
- # uses: actions/cache@v4
- # with:
- # path: |
- # ~/.cache/huggingface
- # key: ${{ runner.OS }}-${{ matrix.test_suite }}-hugging-face-v1
+ - name: Cache PeerTube pip directory
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/pip
+ key: ${{ runner.OS }}-${{ matrix.test_suite }}-pip-v1
+
+ - name: Cache Hugging Face models
+ uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cache/huggingface
+ key: ${{ runner.OS }}-${{ matrix.test_suite }}-hugging-face-v1
+
+ # Transcription tools take a lot of disk space, we need to cleanup before running transcription tests
+ - name: Cleanup disk space
+ if: matrix.test_suite == 'transcription' || matrix.test_suite == 'external-plugins'
+ run: |
+ sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
+ sudo docker image prune --all --force
+ sudo docker builder prune -a
+ df -h
- name: Set env test variable (schedule)
if: github.event_name != 'schedule'