We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b08b1 commit e363425Copy full SHA for e363425
.github/workflows/test.yml
@@ -33,6 +33,11 @@ jobs:
33
path: hf_cache
34
key: ${{ runner.os }}-hf-cache
35
36
+ - name: Set HuggingFace token
37
+ run: |
38
+ mkdir -p ~/.huggingface
39
+ echo '{"token":"${{ secrets.HF_TOKEN }}"}' > ~/.huggingface/token
40
+
41
- name: Set up Python 3.9
42
uses: actions/setup-python@v4
43
with:
@@ -48,8 +53,14 @@ jobs:
48
53
run: |
49
54
poetry install --all-extras
50
55
56
+ - name: Authenticate to Google Cloud
57
+ uses: google-github-actions/auth@v1
58
+ with:
59
+ credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
60
51
61
- name: Run full test suite to prime cache
52
62
env:
63
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
64
HF_HOME: ${{ github.workspace }}/hf_cache
65
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
66
GCP_LOCATION: ${{ secrets.GCP_LOCATION }}
0 commit comments