Skip to content

Commit 28cb4b6

Browse files
committed
debug: add dependency check and harden ci env
1 parent 4ba08e6 commit 28cb4b6

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13+
env:
14+
TESTING: "true"
15+
PYTHONPATH: "."
16+
BITSANDBYTES_NOWELCOME: "1"
17+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
1318

1419
steps:
1520
- uses: actions/checkout@v4
@@ -24,8 +29,10 @@ jobs:
2429
python -m pip install --upgrade pip
2530
pip install pytest httpx fastapi pydantic-settings pandas scikit-learn datasets transformers peft bitsandbytes torch --extra-index-url https://download.pytorch.org/whl/cpu
2631
32+
- name: Dependency check
33+
run: |
34+
python -c "import torch; import transformers; import peft; print('ML dependencies loaded')"
35+
2736
- name: Run tests
2837
run: |
29-
export TESTING=true
30-
export BITSANDBYTES_NOWELCOME=1
3138
python -m pytest tests/test_data.py tests/test_api.py

0 commit comments

Comments
 (0)