Add new qir_to_pytket method. #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR checks | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lints: | |
name: Run black and ruff 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 black and ruff | |
run: pip install black ruff | |
- name: Run black check | |
run: black --check . | |
- name: Run ruff check | |
run: ruff check . | |
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 | |
- name: Run mypy check | |
run: | | |
pip install mypy | |
mypy . |