-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (41 loc) · 1.06 KB
/
linux.yml
File metadata and controls
45 lines (41 loc) · 1.06 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
name: Linux
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*'
- 'linuxv*'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup toaster
run: |
curl https://quantastica.com/toaster/install | ACCEPT_EULA=1 /bin/sh
qubit-toaster --help
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.9'
- name: Upgrade pip
run: pip install --upgrade pip
- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-qiskittoaster
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: pip install qiskit quantastica-qconvert
- name: Run tests (using toaster via CLI)
run: USE_CLI=1 python -m unittest -v
- name: Run tests (using toaster via HTTP)
run: |
qubit-toaster -S &
python -m unittest -v