Skip to content

Commit 5afbf6e

Browse files
committed
token
1 parent 1c830af commit 5afbf6e

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/pr_tests_mps.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,52 +97,66 @@ jobs:
9797
9898
- name: Run fast PyTorch Pipeline MPS tests
9999
if: ${{ matrix.config.framework == 'pytorch_pipelines' }}
100+
env:
101+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
100102
run: |
101103
${CONDA_RUN} python -m pytest -n 0 -s -v -k "not Flax and not Onnx" \
102104
--make-reports=tests_${{ matrix.config.report }} \
103105
tests/pipelines
104106
105107
- name: Run fast PyTorch Models MPS tests
106108
if: ${{ matrix.config.framework == 'pytorch_models' }}
109+
env:
110+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
107111
run: |
108112
${CONDA_RUN} python -m pytest -n 0 -s -v -k "not Flax and not Onnx and not Dependency" \
109113
--make-reports=tests_${{ matrix.config.report }} \
110114
tests/models/
111115
112116
- name: Run fast PyTorch Schedulers MPS tests
113117
if: ${{ matrix.config.framework == 'pytorch_schedulers' }}
118+
env:
119+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
114120
run: |
115121
${CONDA_RUN} python -m pytest -n 0 -s -v -k "not Flax and not Onnx and not Dependency" \
116122
--make-reports=tests_${{ matrix.config.report }} \
117123
tests/schedulers/
118124
119125
- name: Run fast PyTorch Others MPS tests
120126
if: ${{ matrix.config.framework == 'pytorch_others' }}
127+
env:
128+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
121129
run: |
122130
${CONDA_RUN} python -m pytest -n 0 -s -v \
123131
--make-reports=tests_${{ matrix.config.report }} \
124132
tests/others/
125133
126134
- name: Run fast PyTorch Single File MPS tests
127135
if: ${{ matrix.config.framework == 'pytorch_single_file' }}
136+
env:
137+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
128138
run: |
129139
${CONDA_RUN} python -m pytest -n 0 -s -v \
130140
--make-reports=tests_${{ matrix.config.report }} \
131141
tests/single_file/
132142
133143
- name: Run fast PyTorch Lora MPS tests
134144
if: ${{ matrix.config.framework == 'pytorch_lora' }}
145+
env:
146+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
135147
run: |
136148
${CONDA_RUN} python -m pytest -n 0 -s -v \
137149
--make-reports=tests_${{ matrix.config.report }} \
138150
tests/lora/
139151
140-
- name: Run fast PyTorch Quantization MPS tests
141-
if: ${{ matrix.config.framework == 'pytorch_quantization' }}
142-
run: |
143-
${CONDA_RUN} python -m pytest -n 0 -s -v \
144-
--make-reports=tests_${{ matrix.config.report }} \
145-
tests/quantization/
152+
# - name: Run fast PyTorch Quantization MPS tests
153+
# if: ${{ matrix.config.framework == 'pytorch_quantization' }}
154+
# env:
155+
# HF_TOKEN: ${{ secrets.HF_TOKEN }}
156+
# run: |
157+
# ${CONDA_RUN} python -m pytest -n 0 -s -v \
158+
# --make-reports=tests_${{ matrix.config.report }} \
159+
# tests/quantization/
146160

147161
- name: Failure short reports
148162
if: ${{ failure() }}

0 commit comments

Comments
 (0)