Skip to content

Commit 3212375

Browse files
authored
added full hf token authentication (#916)
1 parent e65fafb commit 3212375

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
run: |
6868
poetry check --lock
6969
poetry install --with dev
70+
- name: Authenticate HuggingFace CLI
71+
run: |
72+
pip install huggingface_hub
73+
huggingface-cli login --token $HF_TOKEN
74+
env:
75+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
7076
- name: Unit Test
7177
run: make unit-test
7278
env:
@@ -106,6 +112,12 @@ jobs:
106112
run: make docstring-test
107113
- name: Type check
108114
run: poetry run mypy .
115+
- name: Authenticate HuggingFace CLI
116+
run: |
117+
pip install huggingface_hub
118+
huggingface-cli login --token $HF_TOKEN
119+
env:
120+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
109121
- name: Test Suite with Coverage Report
110122
run: make coverage-report-test
111123
env:
@@ -196,6 +208,12 @@ jobs:
196208
with:
197209
name: test-coverage
198210
path: docs/source/_static/coverage
211+
- name: Authenticate HuggingFace CLI
212+
run: |
213+
pip install huggingface_hub
214+
huggingface-cli login --token $HF_TOKEN
215+
env:
216+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
199217
- name: Build Docs
200218
run: poetry run build-docs
201219
env:

0 commit comments

Comments
 (0)