-
-
Notifications
You must be signed in to change notification settings - Fork 27
43 lines (39 loc) · 1.23 KB
/
re_edge_gpt_dev_python3_12_ubuntu.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
name: ReEdgeGPT Dev Ubuntu Python3.12
on:
push:
branches: [ "dev", "main"]
schedule:
- cron: "0 8 * * *"
pull_request_target:
types: [assigned, opened, synchronize, reopened]
permissions:
contents: read
jobs:
build_dev_version:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r ./test/dev_requirements.txt
- name: Test Bot
env:
EDGE_COOKIES: ${{ secrets.EDGE_COOKIES }}
run: python ./test/unit_test/back-end/test_bot/test_bot.py
- name: Test Generation Image
env:
IMAGE_COOKIE: ${{ secrets.IMAGE_COOKIE }}
run: python ./test/unit_test/back-end/test_generate_image/test_generation.py
# - name: Test chat with plugins
# env:
# EDGE_COOKIES: ${{ secrets.EDGE_COOKIES }}
# run: python ./test/unit_test/back-end/test_bot/test_bot_with_plugins_manual.py
- name: Test chat with file
env:
EDGE_COOKIES: ${{ secrets.EDGE_COOKIES }}
run: python ./test/unit_test/back-end/test_bot/test_bot_with_file.py