Skip to content

Allow generic wavefunctions as initial_state #1367

Allow generic wavefunctions as initial_state

Allow generic wavefunctions as initial_state #1367

Workflow file for this run

# 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.9]
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