Skip to content

Commit b0de5cf

Browse files
authored
CI - check consistency of requirements with pip-compile (#5954)
Make sure pip-compile can resolve direct and transient cirq dependencies. Follow-up to #5929
1 parent 038a025 commit b0de5cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,20 @@ jobs:
171171
run: check/pytest -n auto --ignore=cirq-core/cirq/contrib --rigetti-integration
172172
- name: Stop Quil dependencies
173173
run: docker-compose -f cirq-rigetti/docker-compose.test.yaml down
174+
pip-compile:
175+
name: Check consistency of requirements
176+
runs-on: ubuntu-20.04
177+
steps:
178+
- uses: actions/checkout@v2
179+
- uses: actions/setup-python@v1
180+
with:
181+
python-version: '3.8'
182+
architecture: 'x64'
183+
- name: Install requirements
184+
run: pip install pip-tools
185+
- name: Test dependencies with pip-compile
186+
run: |
187+
pip-compile --resolver=backtracking dev_tools/requirements/deps/cirq-all.txt -o-
174188
build_docs:
175189
name: Build docs
176190
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)