mirror of
https://github.com/blackboxprogramming/quantum-math-lab.git
synced 2026-03-16 23:57:13 -05:00
- GitHub Actions CI: Python 3.10/3.11/3.12 matrix, pytest with coverage, ruff linting - Test suite: Hadamard, Pauli-X, CNOT, Bell states, GHZ states, custom unitaries (Z, SWAP, identity), measurement statistics, state collapse, error handling, probability normalization - README with badges, architecture docs, usage examples - Makefile with test/lint/coverage targets Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> RoadChain-SHA2048: 3885eee6bf8b29cc RoadChain-Identity: alexa@sovereign RoadChain-Full: 3885eee6bf8b29ccd8d9f6c36377ccad48894592f56de0c0eed26cf27c4f58636378cb9a2839a1d98d24713a36dbc036a57b24e01470c353763b5c6ee0437068cfebb487d690ebd8fd62b25c1fcf4b50ffa7a9f8d77d49e270c45ba0872d6181a0f08754c57a7e75e11bb9563da5f691c2868f4e49ef49fdee0633afcdc2b91c7d1ba3dde5e6f152b586112b6428298121f56c05c860c9c322e410bdfbc5aa406974bfd32423306bee9f15ebd87de1e4046ced5fc92d09e4b88dc6632483aec463256705298864657dc196445aef65a7c724f7c12acfd75a80f506aed1e426d032c066d0e950ce13d47c2fb7ca8a80315cee29bd7ab613e0154786f1c42c771a
43 lines
980 B
YAML
43 lines
980 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test (Python ${{ matrix.python-version }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
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 }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run tests with coverage
|
|
run: pytest -v --cov=quantum_simulator --cov-report=term-missing
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- run: pip install ruff
|
|
- run: ruff check . --select E,F,W --ignore E501
|