Skip to content

Conversation Memory System #37

Conversation Memory System

Conversation Memory System #37

Workflow file for this run

# Continuous Integration for Mochi-Moo
# Author: Cazandra Aporbo MS
name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-asyncio pytest-cov
- name: Run tests
run: |
pytest tests/ -v --cov=mochi_moo --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install linting tools
run: |
pip install black flake8 isort mypy
- name: Run Black
run: black --check mochi_moo/
- name: Run isort
run: isort --check-only mochi_moo/
- name: Run Flake8
run: flake8 mochi_moo/ --max-line-length=100
- name: Run MyPy
run: mypy mochi_moo/