From 00a063b1ec6a3ceae2de4ceced07542c039259e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Mart=C3=ADnez=20Galindo?= Date: Fri, 16 Aug 2024 05:24:53 +0100 Subject: [PATCH] :white_check_mark: Add clear cache after tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcos Martínez Galindo --- .github/workflows/python-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 61440f3..8b66b72 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -39,7 +39,7 @@ jobs: - name: Lint with flake8 run: | flake8 --ignore E501,W503 zshot/ - - name: Install Spacy pipeline + - name: Install Spacy pipeline and download models run: | python -m spacy download en_core_web_sm python -m zshot.utils.download_models @@ -47,6 +47,12 @@ jobs: run: | python -m pytest --cov -v --cov-report xml:/home/runner/coverage.xml timeout-minutes: 30 + - name: Remove cache + uses: JesseTG/rm@v1.0.3 + with: + path: | + ~/.cache/huggingface + ~/.cache/zshot - name: Upload coverage to Codecov uses: codecov/codecov-action@v3.1.1 with: