-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (58 loc) · 1.5 KB
/
win.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: Windows
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*'
- 'winv*'
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Setup toaster
run: |
curl https://quantastica.com/toaster/bundle/Qubit-Toaster-Installer.exe > Qubit-Toaster-Installer.exe
./Qubit-Toaster-Installer.exe //VERYSILENT //DIR=.
ls -l .
THIS_DIR=`pwd`
echo "Current dir: $THIS_DIR"
pwd >> $GITHUB_PATH
shell: bash
- name: Echo path
run: |
echo "$PATH"
cat $GITHUB_PATH
shell: bash
- name: Check Toaster
run: |
echo "Checking qubit-toaster..."
qubit-toaster.exe --help
shell: bash
- 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
shell: bash
- name: Run tests (using toaster via HTTP)
run: |
qubit-toaster -S &
python -m unittest -v
shell: bash