Skip to content

Update base_agent.py #1

Update base_agent.py

Update base_agent.py #1

# Python Unit Tests & Static Analysis
# This workflow runs unit tests and static code analysis
name: Python Tests and Static Analysis
on:
push:
paths:
- '**.py'
pull_request:
paths:
- '**.py'
jobs:
test-and-analyze:
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 -r requirements.txt
pip install pytest pytest-cov mypy
- name: Run unit tests
run: pytest --cov=src/ --cov-report=xml
- name: Run mypy static analysis
run: mypy src/