Skip to content

Qiskit Metal v0.5: PySide6, Removing GDSPY to GDSTK, PYAEDT v1.0, and many more changes #1940

Qiskit Metal v0.5: PySide6, Removing GDSPY to GDSTK, PYAEDT v1.0, and many more changes

Qiskit Metal v0.5: PySide6, Removing GDSPY to GDSTK, PYAEDT v1.0, and many more changes #1940

Workflow file for this run

name: Tests
on:
# Run this workflow every time a new commit is pushed to or a pull request is created from one of these branches
push:
branches: [main, "stable/*"]
pull_request:
branches: [main, "stable/*"]
jobs:
# NOTE: The ubuntu-24.04 and macos-latest tests have been separated out because ubuntu
# requires installing some additional libraries (libglu1-mesa) for Gmsh to run. Please
# consider this aspect before combining the tests for both the OS platforms.
ubuntu-tests:
# Name the Job
name: tests-python${{ matrix.python-version }}-ubuntu-latest
# Set the type of machine to run on
runs-on: ubuntu-24.04
# Set matrix for runs-on
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Deps
run: |
python -m pip install -U tox setuptools virtualenv wheel
sudo apt update
sudo apt install libglu1-mesa libglu1-mesa-dev libegl1-mesa-dev
- name: Install and Run Tests
run: tox -e py
macos-tests:
# Name the Job
name: tests-python${{ matrix.python-version }}-macOS-latest
# Set the type of machine to run on
runs-on: macos-15
# Set matrix for runs-on
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Chekout code
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install Deps
run: python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
run: tox -e py
windows-tests:
name: tests-python${{ matrix.python-version }}-windows
runs-on: windows-2025
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install deps
run: |
python -m pip install -U tox cvxopt setuptools virtualenv wheel
shell: pwsh
- name: Install and Run Tests
run: tox --sitepackages -e py
shell: bash -l {0}
lint:
name: lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
cache: "pip"
- name: Install Deps
run: python -m pip install -U tox
- name: Run lint
run: tox -elint
docs:
name: docs
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
cache: "pip"
- name: Install Deps
run: |
python -m pip install -U tox==4.30.3
sudo apt update
sudo apt install -y graphviz=2.42.2-9ubuntu0.1 pandoc=3.1.3+ds-2 qtbase5-dev=5.15.13+dfsg-1ubuntu1 qt5-qmake=5.15.13+dfsg-1ubuntu1
- name: Build Docs
run: tox -edocs
- uses: actions/upload-artifact@v4
with:
name: html_docs
path: docs/_build/html