8000 Add windows and mac runners · hrubanj/llama-cpp-python@baa825d · GitHub
[go: up one dir, main page]

Skip to content

Commit baa825d

Browse files
committed
Add windows and mac runners
1 parent da539cc commit baa825d

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

.github/workflows/test.yaml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
jobs:
9-
build:
9+
build-linux:
1010

1111
runs-on: ubuntu-latest
1212
strategy:
@@ -28,3 +28,49 @@ jobs:
2828
- name: Test with pytest
2929
run: |
3030
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+
- uses: actions/checkout@v3
41+
with:
42+
submodules: "true"
43+
- name: Set up Python ${{ matrix.python-version }}
44+
uses: actions/setup-python@v4
45+
with:
46+
python-version: ${{ matrix.python-version }}
47+
- name: Install dependencies
48+
run: |
49+
python -m pip install --upgrade pip pytest cmake scikit-build
50+
python3 setup.py develop
51+
- name: Test with pytest
52+
run: |
53+
pytest
54+
55+
build-linux:
56+
57+
runs-on: macos-latest
58+
strategy:
59+
matrix:
60+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
61+
62+
steps:
63+
- uses: actions/checkout@v3
64+
with:
65+
submodules: "true"
66+
- name: Set up Python ${{ matrix.python-version }}
67+
uses: actions/setup-python@v4
68+
with:
69+
python-version: ${{ matrix.python-version }}
70+
- name: Install dependencies
71+
run: |
72+
python -m pip install --upgrade pip pytest cmake scikit-build
73+
python3 setup.py develop
74+
- name: Test with pytest
75+
run: |
76+
pytest

0 commit comments

Comments
 (0)
0