Skip to content

Add basic action to run current tests #7

Add basic action to run current tests

Add basic action to run current tests #7

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
env:
HATCH_VERSION: "1.14.0"
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: [3.9, 3.10.x, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}
- name: Run unit and integration tests
run: hatch run test:all