Elffuss BraidHub

kikocis/mlx-vlm public

4fc1dd1991c4 · 848 BRawPermalink
1name: Test PRs
2
3on:
4 pull_request:
5 branches:
6 - main
7
8jobs:
9 test:
10 runs-on: macos-14
11
12 steps:
13 - name: Checkout code
14 uses: actions/checkout@v2
15
16 - name: Set up Python
17 run: |
18 brew install python@3.10
19 python3 -m venv env
20 source env/bin/activate
21
22
23 - name: Run style checks
24 run: |
25 pip install pre-commit
26 pre-commit run --all
27 if ! git diff --quiet; then echo 'Style checks failed, please install pre-commit and run pre-commit run --all and push the change'; exit 1; fi
28
29 - name: Install dependencies
30 run: |
31 pip install pytest
32 pip install -e .
33
34 - name: Run Python tests
35 run: |
36 cd mlx_vlm/
37 pytest -s ./tests