Mohammed Thameem commited on
Commit
49b0d9a
·
1 Parent(s): 8478871

modified test script

Browse files
.github/workflows/hf-sync.yml CHANGED
@@ -28,7 +28,7 @@ jobs:
28
  - name: Run tests
29
  env:
30
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
31
- run: pytest --maxfail=1 --disable-warnings -q
32
 
33
  - name: Push to Hugging Face
34
  if: success() # only run if tests pass
 
28
  - name: Run tests
29
  env:
30
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
31
+ run: PYTHONPATH=. pytest --maxfail=1 --disable-warnings -q
32
 
33
  - name: Push to Hugging Face
34
  if: success() # only run if tests pass
tests/test_app.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  import types
2
  import app
3
 
 
1
+ import sys, os
2
+ sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
3
+
4
+ import app
5
  import types
6
  import app
7