Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
38 changes: 24 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@ name: CI

on:
push:
branches: [main, "feat/**"]
branches: [main, "feat/**", "fix/**"]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install async scanner dependency
run: python -m pip install --upgrade pip aiohttp

python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: python -m pip install --upgrade pip -r requirements.txt
- name: Compile Python sources
run: python -m compileall -q .

- name: Run tests
- name: Startup/import smoke test
run: python -c "import SpectraScan; from modules.async_scanner import AsyncPortScanner; from modules.vuln_scanner import VulnScanner"
- name: Run unit and integration tests
run: python -m unittest discover -s tests -p "test_*.py"
- name: Dependency audit
run: |
python -m pip install pip-audit
python -m pip_audit -r requirements.txt
- name: Static security analysis
run: |
python -m pip install bandit
python -m bandit -q -r SpectraScan.py modules -x modules/darkweb.py
Loading
Loading