Skip to content

Bump pytket from 1.38.0 to 1.39.0 (#142) #197

Bump pytket from 1.38.0 to 1.39.0 (#142)

Bump pytket from 1.38.0 to 1.39.0 (#142) #197

Workflow file for this run

# This workflow will install Python dependencies, run tests, type checking with mypy and lint with Ruff and Poetry.
# It can be tested locally using https://github.com/nektos/act with the command `act push --container-architecture linux/amd64 -j build`
name: Python Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: recursive # Ensures submodules are fetched
- name: Install OpenCL (Qrack dependency)
run: |
sudo apt update
sudo apt install -y ocl-icd-opencl-dev
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Initialize and update submodules
run: |
git submodule update --init --recursive
- name: Install dependencies
run: |
poetry install --no-root
- name: Lint with Ruff
run: |
poetry run ruff check
- name: Type checking with MyPy
run: |
poetry run mypy
- name: Run tests with pytest
run: |
poetry run pytest