Skip to content

Run Tests

Run Tests #31

Workflow file for this run

name: Run Tests
on:
workflow_dispatch: # Enable manual runs
workflow_call: # Make this workflow available to be called by other workflows
jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip install poetry
- name: Install Dependencies
run: |
poetry install --with dev --no-root
- name: Run Tests with Coverage
shell: bash
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run pytest
continue-on-error: false
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}