Skip to content

🧪 Add tests for AnalyticAgent.update_precision #8

🧪 Add tests for AnalyticAgent.update_precision

🧪 Add tests for AnalyticAgent.update_precision #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
MPLBACKEND: Agg
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: Install Python
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group dev 2>/dev/null || uv pip install -e ".[dev]"
- name: Ruff check
run: uv run ruff check alf/
- name: Ruff format check
run: uv run ruff format --check alf/
- name: No-mock check
run: |
if grep -rn "unittest\.mock\|MagicMock\|from mock import\|@patch" alf/tests/ --include="*.py" | grep -v "^#"; then
echo "::error::unittest.mock usage detected in tests"
exit 1
fi
- name: Pytest
run: uv run pytest alf/tests/ -v --tb=short