Skip to content

Commit e363425

Browse files
committed
WIP
1 parent f6b08b1 commit e363425

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
path: hf_cache
3434
key: ${{ runner.os }}-hf-cache
3535

36+
- name: Set HuggingFace token
37+
run: |
38+
mkdir -p ~/.huggingface
39+
echo '{"token":"${{ secrets.HF_TOKEN }}"}' > ~/.huggingface/token
40+
3641
- name: Set up Python 3.9
3742
uses: actions/setup-python@v4
3843
with:
@@ -48,8 +53,14 @@ jobs:
4853
run: |
4954
poetry install --all-extras
5055
56+
- name: Authenticate to Google Cloud
57+
uses: google-github-actions/auth@v1
58+
with:
59+
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
60+
5161
- name: Run full test suite to prime cache
5262
env:
63+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
5364
HF_HOME: ${{ github.workspace }}/hf_cache
5465
OPENAI_API_KEY: ${{ secrets.OPENAI_KEY }}
5566
GCP_LOCATION: ${{ secrets.GCP_LOCATION }}

0 commit comments

Comments
 (0)