8000 Add initial github action to run automated tests · Guhaaa/llama-cpp-python@43c20d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43c20d3

Browse files
committed
Add initial github action to run automated tests
1 parent b1babcf commit 43c20d3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip pytest cmake
25+
python3 setup.py develop
26+
- name: Test with pytest
27+
run: |
28+
pytest

0 commit comments

Comments
 (0)
0