-
Notifications
You must be signed in to change notification settings - Fork 1
80 lines (78 loc) · 2.6 KB
/
test_development_versions.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Development version tests
on:
push:
branches:
- main
- 'stable/**'
pull_request:
branches:
- main
- 'stable/**'
schedule:
- cron: '0 1 * * *'
jobs:
tests:
name: development version tests (${{ matrix.os }}, ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.9, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install tools from pypi
run: |
python -m pip install tox build extremal-python-dependencies==0.0.3
- name: Build Qiskit SDK development wheel
run: |
git clone https://github.com/Qiskit/qiskit
cd qiskit
git rev-parse HEAD
python -m build --wheel
- name: Build qiskit-ibm-runtime development wheel
run: |
git clone https://github.com/Qiskit/qiskit-ibm-runtime
cd qiskit-ibm-runtime
git rev-parse HEAD
python -m build --wheel
- name: Build qiskit-addon-utils development wheel
run: |
git clone https://github.com/Qiskit/qiskit-addon-utils
cd qiskit-addon-utils
git rev-parse HEAD
# Unpin qiskit<2
extremal-python-dependencies pin-dependencies --inplace qiskit
python -m build --wheel
- name: Build qiskit-quimb development wheel
run: |
git clone https://github.com/qiskit-community/qiskit-quimb
cd qiskit-quimb
git rev-parse HEAD
python -m build --wheel
- name: Build quimb development wheel
run: |
git clone https://github.com/jcmgray/quimb
cd quimb
git rev-parse HEAD
python -m build --wheel
- name: Pin development versions
shell: bash
run: >-
extremal-python-dependencies pin-dependencies --inplace
"qiskit @ file:$(echo qiskit/dist/*.whl)"
"qiskit-ibm-runtime @ file:$(echo qiskit-ibm-runtime/dist/*.whl)"
"qiskit-addon-utils @ file:$(echo qiskit-addon-utils/dist/*.whl)"
"qiskit-quimb @ file:$(echo qiskit-quimb/dist/*.whl)"
"quimb @ file:$(echo quimb/dist/*.whl)"
- name: Test using tox environment
run: |
tox -e py,notebook,quimb-only,aer-only --parallel --parallel-no-spinner