-
Notifications
You must be signed in to change notification settings - Fork 103
52 lines (43 loc) · 1.03 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: tests
on:
push:
paths:
- 'chatdocs/**'
- 'tests/**'
- setup.py
pull_request:
workflow_dispatch:
jobs:
build:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- '3.x'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
env:
HNSWLIB_NO_NATIVE: 1
run: |
python -m pip install --upgrade pip
pip install .
- name: Copy chatdocs.yml
run: cp tests/fixtures/chatdocs.yml .
- name: Test download
run: chatdocs download
- name: Test add
run: |
chatdocs add examples
chatdocs add tests/fixtures/documents
- name: Test chat
run: chatdocs chat 'Why was the NATO created?'