IBMQ integration tests #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: IBMQ integration tests | |
on: | |
schedule: | |
- cron: '0 0 * * 0,4' # At 00:00 on Sunday and Thursday. | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9] | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-ci-legacy.txt | |
pip install wheel pytest pytest-cov pytest-mock flaky --upgrade | |
pip freeze | |
- name: Install Plugin | |
run: | | |
pip install git+https://github.com/PennyLaneAI/pennylane-qiskit.git@${{ github.ref }} | |
pip freeze | |
- name: Run tests | |
# Only run IBMQ and Runtime tests (skipped otherwise) | |
run: python -m pytest tests -k 'test_ibmq.py or test_runtime.py' --cov=pennylane_qiskit --cov-report=term-missing --cov-report=xml -p no:warnings --tb=native | |
env: | |
IBMQX_TOKEN: ${{ secrets.IBMQX_TOKEN_TEST }} |