Skip to content

Daily Integration Check #505

Daily Integration Check

Daily Integration Check #505

name: Daily Integration Check
on:
schedule:
- cron: "0 14 * * *" # Daily at 14:00 UTC
workflow_dispatch: # so that we can also run manually, e.g. for testing
jobs:
daily-integration-check:
name: Pytest integration check
env:
SUPERSTAQ_API_KEY : ${{ secrets.SUPERSTAQ_API_KEY }}
TEST_USER_IBMQ_TOKEN : ${{ secrets.TEST_USER_IBMQ_TOKEN }}
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ./checks-superstaq ./general-superstaq[dev] ./qiskit-superstaq[dev] ./cirq-superstaq[dev]
- name: Pytest integration check
run: |
checks/pytest_.py --integration
- name: Create issue if integration check failed
if: ${{ failure() }}
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TEST_USER_IBMQ_TOKEN : ${{ secrets.TEST_USER_IBMQ_TOKEN }}
with:
filename: .github/integration-check-failure-issue.md
update_existing: true