-
Notifications
You must be signed in to change notification settings - Fork 105
45 lines (38 loc) · 1.44 KB
/
ci_pyquil.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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tequila-Test-Pyquil
on:
push:
branches: [ master, devel ]
pull_request:
branches: []
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install and run
run: |
python -m pip install --upgrade pip
pip install --upgrade pytest
pip install -r requirements.txt
pip install "pyquil<3.0" # needs updates
pip install -e .
pip install --upgrade pip 'urllib3<2' # issues with old pyquil version otherwise
docker pull rigetti/qvm:edge
docker pull rigetti/quilc
docker run --rm -itd -p 5555:5555 rigetti/quilc -R
docker run --rm -itd -p 5000:5000 rigetti/qvm -S
pytest -m "not dependencies" tests/test_simulator_backends.py --slow
pytest tests/test_recompilation_routines.py --slow
pytest -m "not dependencies" tests/test_noise.py --slow
pytest tests/test_gradient.py --slow
pytest tests/test_scipy.py --slow
pytest tests/test_mappings.py --slow