Skip to content

Add new qir_to_pytket method. #7

Add new qir_to_pytket method.

Add new qir_to_pytket method. #7

Workflow file for this run

name: PR checks
on:
pull_request:
branches:
- main
jobs:
lints:
name: Run black, ruff and mypy checks
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install flit, black, ruff and mypy
run: pip install flit black ruff mypy
- name: Run black check
run: black --check .
- name: Run ruff check
run: ruff check .
- name: Run mypy check
run: |
flit install
mypy .
checks:
name: Run quick unit tests
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
pyver: ['3.10', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.pyver }}
- name: Install flit
run: pip install flit
- name: Install pytket-qirpass
run: flit install
- name: Run quick tests
run: python -m unittest