Skip to content

Allow unsetting max_tokens in eval script (#241) #199

Allow unsetting max_tokens in eval script (#241)

Allow unsetting max_tokens in eval script (#241) #199

Workflow file for this run

name: Test
on:
pull_request:
branches: [ main, master ]
paths:
- '**.py'
- 'pyproject.toml'
- '.github/workflows/test.yml'
push:
branches: [ main, master ]
paths:
- '**.py'
- 'pyproject.toml'
- '.github/workflows/test.yml'
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-asyncio pytest-cov nest-asyncio
- name: Run tests
run: |
python -m pytest tests/ -v --cov=verifiers --cov-report=xml --cov-report=term