Elffuss BraidHub

kikocis/mlx-vlm public

main · 906 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@v4
15
16 - name: Set up Python
17 uses: actions/setup-python@v5
18 with:
19 python-version: '3.10'
20
21 - name: Install MLX
22 run: |
23 pip install mlx>=0.15
24
25 - name: Install pre-commit
26 run: |
27 python -m pip install pre-commit
28 pre-commit run --all
29 if ! git diff --quiet; then
30 echo 'Style checks failed, please install pre-commit and run pre-commit run --all and push the change'
31 exit 1
32 fi
33
34 - name: Install package and dependencies
35 run: |
36 python -m pip install pytest
37 python -m pip install -e .
38
39 - name: Run Python tests
40 run: |
41 cd mlx_vlm/
42 pytest -s ./tests