Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
push:
branches: [ main, ci-test ]
pull_request:
branches: [ main, ci-test ]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['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: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
python -m spacy download en_core_web_sm

- name: Run tests with coverage
run: |
pytest tests/ -v --cov=src/cortex --cov-report=xml --cov-report=term
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Version:** 1.0 (Production-Ready Hybrid Stack)

[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
[![Tests](https://img.shields.io/badge/tests-40%2F40%20passing-brightgreen.svg)](./tests/)
[![Tests](https://github.com/IASolutionOrg/Cortex/actions/workflows/tests.yml/badge.svg)](https://github.com/IASolutionOrg/Cortex/actions/workflows/tests.yml)
[![Docker](https://img.shields.io/badge/docker-ready-blue.svg)](./Dockerfile)
[![MCP](https://img.shields.io/badge/MCP-Enabled-purple.svg)](https://modelcontextprotocol.io/)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
Expand Down Expand Up @@ -167,7 +167,7 @@ Generate your own dashboard with the `visualize_brain` tool or run the demo:

```bash
python demo_scenario.py
# Opens demo_dashboard.html automatically
# Open demo_dashboard.html manually
```

---
Expand Down
Binary file modified requirements.txt
Binary file not shown.