This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ReEdgeGPT Self Test Windows Python3.11 | |
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: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
cd $GITHUB_WORKSPACE | |
pip install virtualenv | |
virtualenv venv | |
python -m pip install --upgrade pip wheel | |
venv\Scripts\activate.bat | |
ls | |
pip install -r /test/self_test_requirements.txt | |
- name: Test Bot | |
env: | |
EDGE_COOKIES: ${{ secrets.EDGE_COOKIES }} | |
run: | | |
venv\Scripts\activate.bat | |
python /test/unit_test/back-end/test_bot/test_bot.py | |
- name: Test Generation Image | |
env: | |
IMAGE_COOKIE: ${{ secrets.IMAGE_COOKIE }} | |
run: | | |
venv\Scripts\activate.bat | |
python /test/unit_test/back-end/test_generate_image/test_generation.py | |
- name: Test chat with plugins | |
env: | |
EDGE_COOKIES: ${{ secrets.EDGE_COOKIES }} | |
run: | | |
venv\Scripts\activate.bat | |
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: | | |
venv\Scripts\activate.bat | |
python /test/unit_test/back-end/test_bot/test_bot_with_file.py |