Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add flags to disable storing tool and history messages on run output #15017

feat: add flags to disable storing tool and history messages on run output

feat: add flags to disable storing tool and history messages on run output #15017

Workflow file for this run

name: Validation
on:
push:
branches:
- "main"
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- "main"
- "v2.0"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
style-check-agno:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
defaults:
run:
working-directory: libs/agno
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade \
pip setuptools wheel \
ruff mypy pytest types-pyyaml
pip install --no-deps -r requirements.txt
- name: Ruff format
run: |
ruff format .
- name: Ruff check
run: |
ruff check .
- name: Mypy
run: |
mypy .
style-check-cookbook:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
defaults:
run:
working-directory: cookbook
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade \
pip setuptools wheel \
ruff mypy pytest
pip install --no-deps -r ../libs/agno/requirements.txt
- name: Ruff format
run: |
ruff format .
- name: Ruff check
run: |
ruff check .
# - name: Mypy
# run: |
# mypy .
style-check-agno-infra:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
defaults:
run:
working-directory: libs/agno_infra
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade \
pip setuptools wheel \
ruff mypy pytest
pip install -r requirements.txt
- name: Ruff format
run: |
ruff format .
- name: Ruff check
run: |
ruff check .
- name: Mypy
run: |
mypy .
tests:
runs-on: ubuntu-latest
# Skip push events if there's an open PR from the same branch
if: github.event_name != 'push' || !github.event.pull_request
strategy:
matrix:
python-version: ["3.12"]
fail-fast: true # Stop all matrix jobs if one fails
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
set -e
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Run dev setup
working-directory: .
run: |
set -e
./scripts/dev_setup.sh
- name: Run tests for Agno
working-directory: .
env:
AGNO_TELEMETRY: false
run: |
source .venv/bin/activate
python -m pytest --cov=agno --cov-report=json:coverage-agno.json ./libs/agno/tests/unit
echo "AGNO_COVERAGE=$(python -c 'import json; print(json.load(open("coverage-agno.json"))["totals"]["percent_covered_display"])')" >> $GITHUB_ENV
# - name: Run tests for Agno Docker
# working-directory: .
# run: |
# source .venv/bin/activate
# python -m pytest --cov=agno_docker --cov-report=json:coverage-docker.json ./libs/infra/agno_docker/tests
# echo "DOCKER_COVERAGE=$(python -c 'import json; print(json.load(open("coverage-docker.json"))["totals"]["percent_covered_display"])')" >> $GITHUB_ENV
# - name: Run tests for Agno AWS
# working-directory: .
# run: |
# source .venv/bin/activate
# python -m pytest --cov=agno_aws --cov-report=json:coverage-aws.json ./libs/infra/agno_aws/tests
# echo "AWS_COVERAGE=$(python -c 'import json; print(json.load(open("coverage-aws.json"))["totals"]["percent_covered_display"])')" >> $GITHUB_ENV
# ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/dirkbrnd/9ba6033402f8be8ae2a63323a114211a/raw/agno-coverage.json)
# - name: Create Coverage Badge
# uses: schneegans/dynamic-badges-action@v1.7.0
# with:
# auth: ${{ secrets.GIST_SECRET }}
# gistID: 9ba6033402f8be8ae2a63323a114211a
# filename: agno-coverage.json
# label: Coverage
# message: ${{ env.AGNO_COVERAGE }}%
# color: |
# [
# {
# "value": 100,
# "color": "brightgreen"
# },
# {
# "value": 80,
# "color": "green"
# },
# {
# "value": 60,
# "color": "yellow"
# },
# {
# "value": 0,
# "color": "red"
# }
# ]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.