Juju519 commited on
Commit
080e4bb
·
1 Parent(s): 5e5d1c7

ci: fix tests

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +5 -2
.github/workflows/test.yml CHANGED
@@ -35,11 +35,14 @@ jobs:
35
  # pin gradio to keep CI stable/quiet
36
  pip install pytest transformers gradio==4.44.1 huggingface_hub
37
 
 
 
38
  - name: Run tests (no OAuth; local path stubbed)
39
  env:
40
- SKIP_UI_ON_IMPORT: "1" # prevents UI/OAuth from initializing during import
41
- LOCAL_MODEL: sshleifer/tiny-gpt2 # keeps any fallback tiny/fast
42
  GRADIO_ANALYTICS_ENABLED: "false"
 
43
  run: pytest -q
44
 
45
  # Redundant but nice: explicit UI smoke without OAuth for clear logs
 
35
  # pin gradio to keep CI stable/quiet
36
  pip install pytest transformers gradio==4.44.1 huggingface_hub
37
 
38
+
39
+
40
  - name: Run tests (no OAuth; local path stubbed)
41
  env:
42
+ SKIP_UI_ON_IMPORT: "1"
43
+ LOCAL_MODEL: sshleifer/tiny-gpt2
44
  GRADIO_ANALYTICS_ENABLED: "false"
45
+ HF_TOKEN: ${{ secrets.HF_TOKEN }} # 👈 ensure this line exists
46
  run: pytest -q
47
 
48
  # Redundant but nice: explicit UI smoke without OAuth for clear logs