Skip to content

Fixed Ruff format check #3

Fixed Ruff format check

Fixed Ruff format check #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v5
with:
version: "0.7.x"
- run: uv python install 3.12
- run: uv sync --all-extras
- name: Ruff check
run: uv run ruff check src/ tests/
- name: Ruff format check
run: uv run ruff format --check src/ tests/
- name: Mypy
run: uv run mypy src/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v5
with:
version: "0.7.x"
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run unit tests
run: |
uv run pytest tests/test_tools_unit.py \
-v \
--cov=agno_opensandbox_toolkit \
--cov-report=term-missing \
--cov-fail-under=90 \
--tb=short
- name: Upload coverage
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v5
with:
name: coverage-report
path: .coverage