Skip to content

Added Similarity Evaluator To Config #30

Added Similarity Evaluator To Config

Added Similarity Evaluator To Config #30

Workflow file for this run

name: CI
on:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
uses: abatilo/actions-poetry@v4
- name: Setup local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Setup Poetry cache
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --with dev
- name: Run Ruff formatter check
run: poetry run ruff format --check .
- name: Run Ruff linter
run: poetry run ruff check .
test:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Poetry
uses: abatilo/actions-poetry@v4
- name: Setup local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Set up Poetry cache
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --with dev
- name: Run unit tests
run: poetry run pytest tests/unit/**/*.py --import-mode=importlib
- name: Run integration tests
run: poetry run pytest tests/integration