Skip to content

feat: Add module load method to guppy #348

feat: Add module load method to guppy

feat: Add module load method to guppy #348

Workflow file for this run

name: Pull Request
on: pull_request
jobs:
check:
name: Check Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Build Hugr validator
uses: PyO3/maturin-action@v1
with:
command: build
sccache: 'true'
rust-toolchain: '1.75'
working-directory: validator
- name: Install Guppy
run: poetry install
- name: Install Hugr validator
run: poetry add validator/target/wheels/*
- name: Type check with mypy
run: poetry run mypy guppylang
- name: Check formatting with ruff
uses: chartboost/ruff-action@v1
with:
src: "./guppylang"
args: format --check
- name: Lint with ruff
uses: chartboost/ruff-action@v1
with:
src: "./guppylang"
args: check
- name: Run tests
run: poetry run pytest
- name: Checkout tket2
uses: actions/checkout@v4
with:
repository: CQCL/tket2
path: tket2
- name: Build tket2-py
uses: PyO3/maturin-action@v1
with:
command: build
sccache: 'true'
rust-toolchain: '1.75'
working-directory: tket2/tket2-py
- name: Install tket2-py validator
run: poetry add tket2/target/wheels/*
- name: Rerun `py(...)` expression tests with tket2 installed
run: poetry run pytest tests/integration/test_py.py tests/error/test_py_errors.py