From 0d00b89aedc5e0676b1208f8d0ebcec92daa89a0 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 4a60ded6..794d727d 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 }}