-
Notifications
You must be signed in to change notification settings - Fork 507
73 lines (65 loc) · 2.06 KB
/
Nightly_CI_main.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Nightly CI
on:
schedule:
# * is a special character in YAML so you have to quote this string
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
- cron: "0 22 * * *"
pull_request:
branches:
- main
- dev
paths:
- '.github/workflows/Nightly_CI_main.yaml'
jobs:
nightly-CI-gpt-cache-cli-main:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
services:
postgres:
image: ankane/pgvector
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@main
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: pip
- name: Install dependency
shell: bash
run: |
pip install -r requirements.txt
- name: Build and install
shell: bash
run: |
python setup.py install
- name: Install test dependency
shell: bash
working-directory: tests
run: |
pip install -r requirements.txt
- name: Download the `en_core_web_sm` model
shell: bash
working-directory: tests
run: |
python3 -m spacy download en_core_web_sm
- name: Nightly CI Tests
timeout-minutes: 30
shell: bash
working-directory: tests
run: |
export IS_CI=true
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
python3 -m pytest ./ --tags L2