-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 898 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Tests
on: [push]
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest]
python-version: ["3.8"]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Packages from requirements.txt
run: pip install -r weights_export/requirements.txt
- name: Saving Model Weights
run: python weights_export/export_model_weights.py
- name: Create Build Environment
run: mkdir build
- name: Configure CMake
working-directory: ./build
run: cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DGGML_TEST_COVERAGE=ON -DGGML_CLBLAST=ON ..
- name: Build
working-directory: ./build
run: make
- name: Run tests
run: python -m pytest tests/test.py