Skip to content

Commit

Permalink
DROPME - temporarily upgrade to numpy-1.24.2
Browse files Browse the repository at this point in the history
Temporarily upgrade to numpy-1.24.2 to enable CI testing of quantumlib#5991.
Also add an intentionally failing CI check to ensure this commit
is not accidentally merged.

Please revert this commit before merging the pull-request.
  • Loading branch information
pavoljuhas committed Mar 9, 2023
1 parent 38385b5 commit f0dfd21
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,15 @@ jobs:
- name: Test dependencies with pip-compile
run: |
pip-compile --resolver=backtracking dev_tools/requirements/deps/cirq-all.txt -o-
numpy-1.24-guard:
name: Deliberate failure for numpy-1.24
runs-on: ubuntu-20.04
steps:
run: |
echo "This check fails to prevent merging of a temporary upgrade to numpy-1.24"
echo
echo "Please revert the commit which introduced this test."
exit 1
build_docs:
name: Build docs
runs-on: ubuntu-20.04
Expand Down
7 changes: 6 additions & 1 deletion cirq-core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ backports.cached_property~=1.0.1; python_version < '3.8'
duet~=0.2.7
matplotlib~=3.0
networkx~=2.4
numpy>=1.16,<1.24

# Here we temporarily bump-up to numpy-1.24 for sake of CI testing
# TODO(#5991) - revert this change before merge
# numpy>=1.16,<1.24
numpy==1.24.2

pandas
sortedcontainers~=2.0
scipy
Expand Down

0 comments on commit f0dfd21

Please sign in to comment.