Skip to content

Code refactor

Code refactor #27

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Run-Tests:
strategy:
matrix:
python-version: ["3.10", "3.11"]
os: [ubuntu-latest, macos]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout pytket-mbqc
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install pytket-mbqc
run: pip install pytket-mbqc-py/
- name: Run Tests
run: pytest --cov-report term-missing:skip-covered --cov=pytket-mbqc-py/pytket_mbqc_py/ pytket-mbqc-py/tests/ --durations=10
- name: Type Check
run: mypy pytket-mbqc-py/pytket_mbqc_py/ --warn-unused-ignores
- name: Lint Check
run: ruff check
- name: Format Check
run: ruff format --check