Skip to content

fix: allow empty content for tool role messages in validation (#41) #129

fix: allow empty content for tool role messages in validation (#41)

fix: allow empty content for tool role messages in validation (#41) #129

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
merge_group:
permissions:
contents: read
pull-requests: read
jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff black
- name: Run Ruff
run: ruff check justllms/
- name: Check Black formatting
run: black --check justllms/
type-check:
name: Type Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy types-PyYAML types-requests
pip install -e .
- name: Run mypy
run: mypy justllms/ --ignore-missing-imports
test-build:
name: Test Build - Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Verify package
run: |
pip install dist/*.whl
python -c "import justllms; print(f'JustLLMs {justllms.__version__} imported successfully')"
- name: Check package contents
run: |
pip show -f justllms