Skip to content

Commit

Permalink
Created CI caching for Hugging Face datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Sep 12, 2024
1 parent 25b6a9c commit 78d0f7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 78d0f7c

Please sign in to comment.