Skip to content

pre-release updates (#638) #16

pre-release updates (#638)

pre-release updates (#638) #16

Workflow file for this run

name: CI
on:
pull_request:
branches: ['main']
push:
branches: ['main']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install -U pip setuptools ipython
python -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: True
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: ./build/coverage/coverage.xml
verbose: true