Skip to content

Commit c4eab57

Browse files
authored
CI - test cirq compatibility under Python 3.10 (#673)
CI - test cirq compatibility using Python 3.10 cirq requires minimum Python version 3.10. Running under Python 3.7 installs cirq from June 2023. Also change the pip3 command to install a pre-release of cirq with stable dependencies. Run the "Format check" job under Python 3.10 as well.
1 parent cd646a9 commit c4eab57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/cirq_compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5
1414
with:
15-
python-version: '3.7'
15+
python-version: '3.10'
1616
architecture: 'x64'
1717
- name: Install Cirq nightly
18-
run: pip3 install -U cirq --pre
18+
run: pip3 install --upgrade cirq~=1.0.dev
1919
- name: Install qsim requirements
2020
run: pip3 install -r requirements.txt
2121
- name: Install test requirements

.github/workflows/python_format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fetch-depth: 0
2323
- uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.7'
25+
python-version: '3.10'
2626
architecture: 'x64'
2727
- name: Install dev requirements
2828
run: pip install -r dev-requirements.txt

0 commit comments

Comments
 (0)