Skip to content

OQC qasm format + device availability fixes (#831) #18

OQC qasm format + device availability fixes (#831)

OQC qasm format + device availability fixes (#831) #18

Workflow file for this run

# Copyright (C) 2024 qBraid
#
# This file is part of the qBraid-SDK
#
# The qBraid-SDK is free software released under the GNU General Public License v3
# or later. You can redistribute and/or modify it under the terms of the GPL v3.
# See the LICENSE file in the project root or <https://www.gnu.org/licenses/gpl-3.0.html>.
#
# THERE IS NO WARRANTY for the qBraid-SDK, as per Section 15 of the GPL v3.
name: CI
on:
pull_request:
branches: ['main']
types: [opened, reopened, ready_for_review, synchronize]
push:
branches: ['main']
workflow_dispatch:
jobs:
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools
python3 -m pip install tox
- name: Tests
run: |
tox -e unit-tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
QISKIT_IBM_TOKEN: ${{ secrets.QISKIT_IBM_TOKEN }}
QBRAID_API_KEY: ${{ secrets.QBRAID_API_KEY }}
QBRAID_RUN_REMOTE_TESTS: False
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./build/coverage/coverage.xml
verbose: true