Skip to content

Commit 51e6fc1

Browse files
tylerhutchersonabrookins
authored andcommitted
use hf access tokens
1 parent 4827f61 commit 51e6fc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ jobs:
133133
with:
134134
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
135135

136+
- name: Set HuggingFace token
137+
run: |
138+
mkdir -p ~/.huggingface
139+
echo '{"token":"${{ secrets.HF_TOKEN }}"}' > ~/.huggingface/token
140+
136141
- name: Run tests
137142
if: matrix.connection == 'plain' && matrix.redis-version == 'latest'
138143
env:
@@ -149,6 +154,7 @@ jobs:
149154
OPENAI_API_VERSION: ${{ secrets.OPENAI_API_VERSION }}
150155
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
151156
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
157+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
152158
run: |
153159
make test-all
154160
@@ -173,6 +179,7 @@ jobs:
173179
OPENAI_API_VERSION: ${{ secrets.OPENAI_API_VERSION }}
174180
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
175181
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
182+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
176183
run: |
177184
docker run -d --name redis -p 6379:6379 redis/redis-stack-server:latest
178185
make test-notebooks

0 commit comments

Comments
 (0)