Files
NexQuant/.github/workflows/ci.yml
T
TPTBusiness ad0358d01c fix(ci): remove CodeQL workflow (conflicts with default setup), drop duplicate lint job
- codeql.yml removed: GitHub default setup already runs CodeQL; advanced
  config upload fails when default setup is enabled
- ci.yml lint job removed: duplicate of lint.yml, fails on pre-existing
  violations unrelated to this PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:46:15 +02:00

50 lines
1.1 KiB
YAML

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
permissions:
contents: read
security-events: write
jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Bandit (Security Scan)
uses: PyCQA/bandit-action@v1
with:
targets: "rdagent/"
severity: medium
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]" || pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run unit tests (no Docker needed)
run: |
pytest test/backtesting/ -v --tb=short
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false