Skip to content

Commit

Permalink
Create a separate requirements file for the CI (#629)
Browse files Browse the repository at this point in the history
* impl [strawberryfields] - requirements

- Create a `requirements-ci.txt` with unpinned packages.
- Pin the packages that are unpinned in the `requirements.txt` file to the latest released version of the given packages.

* impl [workflows] - requirements-ci

- Update github actions to use requirements-ci.txt

* version [requirements-ci] - use released blackbird

Co-authored-by: Theodor <theodor@xanadu.ai>

* version [requirements] - use released blackbird

Co-authored-by: Theodor <theodor@xanadu.ai>

* edit [requirements] - strictly pin all dependencies

* edit [requirements] - use latest released version

* fix [requirements] - dependency conflicts

pin package versions to avoid dependecy conflicts

* edit [workflows] - upload: use requirements-ci

Use `requirementes-ci.txt` to test with the same package versions before release.

* edit [requirements] - strictly pin all dependencies

* fix [requirements] - pin numba

Co-authored-by: Theodor <theodor@xanadu.ai>
  • Loading branch information
sduquemesa and thisac committed Oct 4, 2021
1 parent dae6ae8 commit c0fd8cc
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-ci.txt
pip install wheel codecov pytest pytest-cov pytest-randomly pytest-mock --upgrade
- name: Install Strawberry Fields
run: |
pip install -r requirements.txt
pip install -r requirements-ci.txt
python3 setup.py bdist_wheel
pip install dist/StrawberryFields*.whl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install test dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-ci.txt
pip install wheel pytest pytest-cov pytest-mock --upgrade
- name: Run tests
Expand Down
3 changes: 2 additions & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pytest>=6.2.2
pytest-cov>=2.11.1
pytest-mock>=3.5.1
pytest-randomly>=3.5.0
black>=20.8b1
typing-extensions==3.7.4
black>=19.3b0
15 changes: 15 additions & 0 deletions requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
numpy
scipy
sympy
tensorflow
tensorboard
networkx
quantum-blackbird
python-dateutil
thewalrus
toml
appdirs
numba
requests
urllib3
plotly
21 changes: 11 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
numpy>=1.19.2
scipy
sympy>=1.5
tensorflow>=2.0
tensorboard>=2.0
networkx>=2.0
numpy==1.19.2
scipy==1.7.1
sympy==1.8
tensorflow==2.6.0
tensorboard==2.6.0
typing-extensions==3.7.4
networkx==2.6.3
quantum-blackbird==0.4.0
python-dateutil==2.8.0
thewalrus>=0.16.0
toml
appdirs
numba>=0.48.0
thewalrus==0.16.2
toml==0.10.2
appdirs==1.4.4
numba==0.53.1
requests==2.22.0
urllib3==1.25.8
plotly==4.4.1

0 comments on commit c0fd8cc

Please sign in to comment.