mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
add e2e tests
This commit is contained in:
parent
a5cbd2a978
commit
1064301f45
19 changed files with 1147 additions and 78 deletions
37
.github/workflows/e2e_tests.yml
vendored
Normal file
37
.github/workflows/e2e_tests.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Run Model Server tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main # Run tests on pushes to the main branch
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Step 1: Check out the code from your repository
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Step 2: Set up Python (specify the version)
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.10" # Adjust to your Python version
|
||||
|
||||
# Step 3: Install Poetry
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
- name: run e2e tests
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
|
||||
run: |
|
||||
cd e2e_tests
|
||||
poetry install
|
||||
sh run_e2e_tests.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue