Skip to content

37 implement a termination criterion for qiskit algorithms spsa #541

37 implement a termination criterion for qiskit algorithms spsa

37 implement a termination criterion for qiskit algorithms spsa #541

Workflow file for this run

# This workflow installs QUEASARS' dependencies and checks its formatting, typing and unit test correctness.
name: QUEASARS CI
on:
push:
branches: []
pull_request:
branches: []
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install pipx
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --user pipx
python3 -m pipx ensurepath
- name: Install poetry
run: |
pipx install poetry==1.7.0
- name: Install dependencies
run: |
poetry install
- name: Run black
run: |
poetry run black queasars/ --check
poetry run black test/ --check
- name: Run mypy
run: |
poetry run mypy queasars/
- name: Run pytest
run: |
poetry run pytest test/