Skip to content

update bqm tsp example #581

update bqm tsp example

update bqm tsp example #581

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
- name: Run tests
run: tox -e unit-tests #--override testenv.deps+=tweedledum --override testenv.extras=tweedledum
unit-tests-3_8:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
- name: Run tests
run: |
rm test/test_qcircuit_exporters.py
rm test/test_qlassf_to_bqm.py
tox -c tox_3.8.ini -e unit-tests
unit-tests-notw:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
- name: Run tests
run: tox -c tox_no_tweedledum.ini -e unit-tests
unit-tests-notw-nopyqubo:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox
- name: Run tests
run: tox -c tox_no_tw_and_pyqubo.ini -e unit-tests
linters:
runs-on: ubuntu-latest
container:
image: cimg/python:3.11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: pip install tox
- name: Run linters
run: tox -e linters
# coverage:
# runs-on: ubuntu-latest
# container:
# image: cimg/python:3.11
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Set up Python 3.11
# uses: actions/setup-python@v2
# with:
# python-version: 3.11
# - name: Install dependencies
# run: pip install tox
# - name: Run coverage
# run: tox -e coverage
typecheck:
runs-on: ubuntu-latest
container:
image: cimg/python:3.11
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: pip install tox
- name: Run typecheck
run: tox -e typecheck