-
Notifications
You must be signed in to change notification settings - Fork 60
62 lines (48 loc) · 1.69 KB
/
test_pypi.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test the PyPi install weekly
on:
schedule:
- cron: "0 0 * * 1,3,5" #“At 00:00 on Monday, Wednesday, and Friday.” https://crontab.guru/#0_0_*_*_1,3,5
workflow_dispatch:
jobs:
test_pypi:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ['3.8', '3.9', '3.10']
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
# Define job steps
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Check-out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install OpenQAOA-Core
run: |
pip install openqaoa-core
python -c 'from openqaoa._version import __version__; print(__version__)'
- name: Install OpenQAOA-Qiskit
run: |
pip install openqaoa-qiskit
python -c 'from openqaoa._version import __version__; print(__version__)'
- name: Install OpenQAOA-Pyquil
run: |
pip install openqaoa-pyquil
python -c 'from openqaoa._version import __version__; print(__version__)'
- name: Install OpenQAOA-Braket
run: |
pip install openqaoa-braket
python -c 'from openqaoa._version import __version__; print(__version__)'
- name: Install OpenQAOA-Azure
run: |
pip install openqaoa-azure
python -c 'from openqaoa._version import __version__; print(__version__)'
- name: Install OpenQAOA (Full)
run: |
pip install openqaoa
python -c 'from openqaoa._version import __version__; print(__version__)'