From a69b148f34b6950017baee9184d79d9a1165b3ec Mon Sep 17 00:00:00 2001 From: James Braza Date: Thu, 12 Sep 2024 14:24:24 -0700 Subject: [PATCH] Created CI caching for Hugging Face datasets --- .github/workflows/tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4a60ded6a..794d727df 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -47,6 +47,12 @@ jobs: curl -LsSf https://astral.sh/uv/install.sh | sh uv python pin ${{ matrix.python-version }} - run: uv sync --python-preference=only-managed + - name: Cache datasets + uses: actions/cache@v4 + with: + path: ~/.cache/huggingface/datasets + key: ${{ runner.os }}-datasets-${{ hashFiles('paperqa') }} + restore-keys: ${{ runner.os }}-datasets- - run: uv run pytest -n auto env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}