Skip to content

release: v0.4.3 — README update with v0.4 improvements + demo command #42

release: v0.4.3 — README update with v0.4 improvements + demo command

release: v0.4.3 — README update with v0.4 improvements + demo command #42

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev,ci]"
- name: Ruff lint
run: ruff check quantumrag/ tests/ --select E9,F63,F7,F82
- name: Ruff format check
run: ruff format --check quantumrag/ tests/
- name: Type check
run: mypy quantumrag/ --ignore-missing-imports --no-error-summary
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev,ci]"
- name: Run unit tests
run: pytest tests/unit/ -q --tb=short -x
- name: Run unit tests with coverage
if: matrix.python-version == '3.12'
run: pytest tests/unit/ -q --tb=short --cov=quantumrag --cov-report=term-missing --cov-report=xml --cov-fail-under=60
- name: Upload coverage
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -e ".[dev,ci]"
- name: Security tests
run: pytest tests/security/ -q --tb=short