-
Notifications
You must be signed in to change notification settings - Fork 41
46 lines (43 loc) · 1.19 KB
/
check_code.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
name: check code
on:
pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt
- name: Test
run: make test
- name: Run SlashGPT
run: OPENAI_API_KEY=TEST ./SlashGPT.py --run /bye
- name: Run SimpleGPT
run: OPENAI_API_KEY=TEST python -m samples.SimpleGPT test
- name: Run SimpleGPT2
run: OPENAI_API_KEY=TEST python -m samples.SimpleGPT2 test
- name: Run AgentGPT
run: OPENAI_API_KEY=TEST python -m samples.AgentGPT test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt
- name: Lint
run: make lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install poetry
run: pip install poetry
- name: Build
run: poetry build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: packages
path: dist/