-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 1.27 KB
/
tests.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
name: Test platform creation
on: push
jobs:
tests:
strategy:
matrix:
version: ["stable", "dev"]
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install latest qibolab 0.1 stable version
if: ${{ matrix.version == 'stable' }}
run: |
python -m venv testenv
source testenv/bin/activate
pip install pytest
pip install 'qibolab[qblox,zh,qm,rfsoc,los]<0.2.0'
- name: Install and configure poetry
if: ${{ matrix.version == 'dev' }}
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Install latest qibolab 0.1 development version
if: ${{ matrix.version == 'dev' }}
run: |
python -m venv testenv
source testenv/bin/activate
git clone https://github.com/qiboteam/qibolab
cd qibolab
git checkout 0.1
poetry install --no-interaction --with tests --all-extras
- name: Test platforms
run: |
source testenv/bin/activate
QIBOLAB_PLATFORMS=$(realpath .) pytest _tests/