-
Notifications
You must be signed in to change notification settings - Fork 19
38 lines (35 loc) · 1.22 KB
/
daily-integration-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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