Skip to content

feat: Phase 3 exploitation engine - auto/confirm/skip decision, MSF R… #15

feat: Phase 3 exploitation engine - auto/confirm/skip decision, MSF R…

feat: Phase 3 exploitation engine - auto/confirm/skip decision, MSF R… #15

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop, "feature/**" ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
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 }}
cache: "pip"
- name: Install system dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y nmap libpango-1.0-0 libpangoft2-1.0-0
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
env:
GROQ_API_KEY: ""
SHODAN_API_KEY: ""
run: |
python -m pytest tests/ -v --tb=short
- name: Check imports
run: |
python -c "from core.target import Target; print('core.target OK')"
python -c "from core.session import Session; print('core.session OK')"
python -c "from modules.recon.passive import PassiveRecon; print('passive recon OK')"
python -c "from modules.recon.active import ActiveRecon; print('active recon OK')"
python -c "from modules.scanner.port_scanner import PortScanner; print('port_scanner OK')"
python -c "from modules.scanner.web_scanner import WebScanner; print('web_scanner OK')"
python -c "from modules.scanner.service_scanner import ServiceScanner; print('service_scanner OK')"
python -c "from modules.ai.analyzer import AIAnalyzer; print('AI analyzer OK')"
python -c "from reporting.generator import ReportGenerator; print('reporting OK')"
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install linters
run: pip install ruff
- name: Run ruff
run: ruff check . --ignore E501,E402