Repository navigation
59 lines (57 loc) · 1.79 KB
/
Copy pathtest_development_versions.yml
File metadata and controls
59 lines (57 loc) · 1.79 KB
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
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:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.14"]
steps:
- uses: actions/checkout@v7
with:
# The reference energies the tests check against come from data in the
# vendored upstream checkout, and setup.py needs its headers to compile.
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install MPI and BLAS (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev openmpi-bin libopenblas-dev
- name: Install tools from pypi
run: |
python -m pip install --upgrade pip
python -m pip install tox build 'extremal-python-dependencies<2'
- name: Build qiskit-addon-sqd development wheel
run: |
git clone https://github.com/Qiskit/qiskit-addon-sqd
cd qiskit-addon-sqd
git rev-parse HEAD
python -m build --wheel
- name: Pin development versions
shell: bash
run: >-
extremal-python-dependencies pin-dependencies --inplace
"qiskit-addon-sqd @ file:$(echo qiskit-addon-sqd/dist/*.whl)"
- name: Test using tox environments
shell: bash
run: |
tox -e py,notebook,mpi