Skip to content

feat: replace promote with prompt ab testing #277

feat: replace promote with prompt ab testing

feat: replace promote with prompt ab testing #277

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint and format with ruff
run: |
ruff check
- name: Type check
run: |
mypy .
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
env:
LITERAL_API_URL: ${{ secrets.LITERAL_API_URL }}
LITERAL_API_KEY: ${{ secrets.LITERAL_API_KEY }}
run: |
pytest -m e2e