Skip to content

Commit ab0142c

Browse files
use hf access tokens
1 parent a1920f5 commit ab0142c

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
@@ -65,6 +65,11 @@ jobs:
6565
with:
6666
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
6767

68+
- name: Set HuggingFace token
69+
run: |
70+
mkdir -p ~/.huggingface
71+
echo '{"token":"${{ secrets.HF_TOKEN }}"}' > ~/.huggingface/token
72+
6873
- name: Run tests
6974
if: matrix.connection == 'plain' && matrix.redis-version == 'latest'
7075
env:
@@ -80,6 +85,7 @@ jobs:
8085
OPENAI_API_VERSION: ${{secrets.OPENAI_API_VERSION}}
8186
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
8287
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
88+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
8389
run: |
8490
make test-all
8591
@@ -103,6 +109,7 @@ jobs:
103109
OPENAI_API_VERSION: ${{secrets.OPENAI_API_VERSION}}
104110
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
105111
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
112+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
106113
run: |
107114
docker run -d --name redis -p 6379:6379 redis/redis-stack-server:latest
108115
if [[ "${{ matrix.python-version }}" > "3.9" ]]; then

0 commit comments

Comments
 (0)