Skip to content

readme

readme #19

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Pytest + Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install spade>=3.3.0 spade_bdi>=0.3.0 agentspeak>=0.2.0 \
structlog>=24.1.0 paho-mqtt>=2.1.0 \
prometheus-client>=0.20.0 \
pytest>=8.0.0 pytest-asyncio>=0.23.0 coverage>=7.4.0 \
ruff>=0.4.0
- name: Lint with ruff
run: ruff check . --output-format=github
continue-on-error: true
- name: Run tests with coverage
run: |
python -m coverage run -m pytest tests/ -v
python -m coverage report --fail-under=60
python -m coverage xml
- name: Upload coverage artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
retention-days: 7