Skip to content

fix(pqcrypto): lazy liboqs initialization for graceful degradation #9

fix(pqcrypto): lazy liboqs initialization for graceful degradation

fix(pqcrypto): lazy liboqs initialization for graceful degradation #9

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '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 dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run tests
run: |
python -m pytest tests/ -v --tb=short -x --ignore=tests/test_integration.py --ignore=tests/test_performance.py --ignore=tests/test_chaos.py
- name: Run core tests with coverage
run: |
python -m pytest tests/test_cognitive_engine.py tests/test_cognitive_safety.py tests/test_decision_engine.py --cov=orchestra --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff linter
run: ruff check src/orchestra/ --output-format=github
continue-on-error: true
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
pip install mypy
- name: Run type checking
run: mypy src/orchestra/ --ignore-missing-imports
continue-on-error: true