Skip to content

⚡ Bolt: Centralize and cache Jinja2 environment creation (#136) #185

⚡ Bolt: Centralize and cache Jinja2 environment creation (#136)

⚡ Bolt: Centralize and cache Jinja2 environment creation (#136) #185

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
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 dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[ai,dev]"
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
lint:
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 linting tools
run: |
python -m pip install --upgrade pip
pip install -e ".[ai,dev]"
pip install ruff flake8 black mypy
- name: Check code formatting with Black
run: |
black --check .
- name: Run ruff linter
run: |
ruff check .
- name: Run flake8
run: |
flake8 .
- name: Run mypy type checker
run: |
mypy cli/ --ignore-missing-imports || true