Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 1.42 KB

File metadata and controls

64 lines (51 loc) · 1.42 KB

name: RCLP CI

on: push: branches: [ main, develop ] pull_request: branches: [ main ]

jobs: test: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.9", "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 }}

- name: Install dependencies
  run: |
    python -m pip install --upgrade pip
    pip install -r requirements.txt
    pip install pytest pytest-cov
    pip install -e .

- name: Run tests (fast)
  run: |
    python -m pytest tests/ -m "not slow" -v --tb=short

- name: Run verification suite
  run: |
    python scripts/verify_all.py

- name: Run basic example
  run: |
    python examples/basic_kem.py

test-slow: runs-on: ubuntu-latest if: github.event_name == 'push' && github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
  run: |
    python -m pip install --upgrade pip
    pip install -r requirements.txt
    pip install pytest
    pip install -e .

- name: Run full test suite (including Leech lattice)
  run: |
    python -m pytest tests/ -v --tb=short