Skip to content

Commit 67357d8

Browse files
authored
Unit test workflow: log in to HF to increase request quota
1 parent d777f3f commit 67357d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/unittest.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@ jobs:
3030
pip install flake8
3131
# stop the build if there are Python syntax errors or undefined names
3232
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude experiments
33+
- name: Login to Hugging Face
34+
env:
35+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
36+
run: echo "$HF_TOKEN" | huggingface-cli login --token
3337
- name: Test
3438
run: python -m unittest discover -s tests

0 commit comments

Comments
 (0)