1+ name : Tests for PyPI package
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ push :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build-linux :
13+
14+ runs-on : ubuntu-latest
15+ strategy :
16+ matrix :
17+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
18+
19+ steps :
20+ - name : Set up Python ${{ matrix.python-version }}
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : ${{ matrix.python-version }}
24+ - name : Install dependencies
25+ run : |
26+ python3 -m pip install --upgrade pip
27+ python3 -m pip install --verbose llama-cpp-python[server,test]
28+ - name : Test with pytest
29+ run : |
30+ python3 -m pytest
31+
32+ build-windows :
33+
34+ runs-on : windows-latest
35+ strategy :
36+ matrix :
37+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
38+
39+ steps :
40+ - name : Set up Python ${{ matrix.python-version }}
41+ uses : actions/setup-python@v4
42+ with :
43+ python-version : ${{ matrix.python-version }}
44+ - name : Install dependencies
45+ run : |
46+ python3 -m pip install --upgrade pip
47+ python3 -m pip install --verbose llama-cpp-python[server,test]
48+ - name : Test with pytest
49+ run : |
50+ python3 -m pytest
51+
52+ build-macos :
53+
54+ runs-on : macos-latest
55+ strategy :
56+ matrix :
57+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
58+
59+ steps :
60+ - name : Set up Python ${{ matrix.python-version }}
61+ uses : actions/setup-python@v4
62+ with :
63+ python-version : ${{ matrix.python-version }}
64+ - name : Install dependencies
65+ run : |
66+ python3 -m pip install --upgrade pip
67+ python3 -m pip install --verbose llama-cpp-python[server,test]
68+ - name : Test with pytest
69+ run : |
70+ python3 -m pytest
0 commit comments