Skip to content

Commit c971809

Browse files
authored
CI - activate Python 3.13 tests for all platforms (#7489)
- Activate Python 3.13 tests for all platforms - CI - combine `pytest-numpy-2` with `pytest` (Ubuntu). Include `cirq/contrib` tests which were tested in `pytest-numpy-2` and do not take too much extra time. Finalizes #6706 and #7296
1 parent 11f6238 commit c971809

File tree

4 files changed

+6
-59
lines changed

4 files changed

+6
-59
lines changed

.github/workflows/ci-daily.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Pytest Ubuntu
1919
strategy:
2020
matrix:
21-
python-version: ['3.11', '3.12']
21+
python-version: ['3.11', '3.12', '3.13']
2222
runs-on: ubuntu-22.04
2323
steps:
2424
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -44,7 +44,7 @@ jobs:
4444
name: Pytest Windows
4545
strategy:
4646
matrix:
47-
python-version: ['3.11', '3.12']
47+
python-version: ['3.11', '3.12', '3.13']
4848
runs-on: windows-2022
4949
steps:
5050
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -70,7 +70,7 @@ jobs:
7070
name: Pytest MacOS
7171
strategy:
7272
matrix:
73-
python-version: ['3.11', '3.12']
73+
python-version: ['3.11', '3.12', '3.13']
7474
runs-on: macos-13
7575
steps:
7676
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/ci.yml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
name: Pytest Ubuntu
188188
strategy:
189189
matrix:
190-
python-version: ['3.11', '3.12']
190+
python-version: ['3.11', '3.12', '3.13']
191191
runs-on: ubuntu-22.04
192192
steps:
193193
- name: Check out source repository
@@ -205,32 +205,6 @@ jobs:
205205
run: |
206206
pip install --upgrade setuptools wheel
207207
pip install --upgrade --upgrade-strategy eager -r dev_tools/requirements/dev.env.txt
208-
- name: Pytest check
209-
run: check/pytest -n auto --durations=20 --ignore=cirq-core/cirq/contrib
210-
# TODO(#6706) remove after we start using NumPy 2.0 in regular pytest
211-
pytest-numpy-2:
212-
if: github.repository_owner == 'quantumlib'
213-
name: Pytest Ubuntu with NumPy-2
214-
strategy:
215-
matrix:
216-
python-version: ['3.11', '3.12', '3.13']
217-
runs-on: ubuntu-22.04
218-
steps:
219-
- name: Check out source repository
220-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
221-
- name: Set up Python environment
222-
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
223-
with:
224-
python-version: ${{ matrix.python-version }}
225-
architecture: 'x64'
226-
cache: 'pip'
227-
cache-dependency-path: |
228-
**/requirements.txt
229-
dev_tools/requirements/**/*.txt
230-
- name: Install requirements
231-
run: |
232-
pip install wheel
233-
pip install --upgrade --upgrade-strategy eager -r dev_tools/requirements/dev-np2.env.txt
234208
- name: Pytest check
235209
run: check/pytest -n auto --durations=20
236210
pip-compile:
@@ -302,7 +276,7 @@ jobs:
302276
name: Pytest Windows
303277
strategy:
304278
matrix:
305-
python-version: ['3.11', '3.12']
279+
python-version: ['3.11', '3.12', '3.13']
306280
runs-on: windows-2022
307281
steps:
308282
- name: Check out source repository
@@ -330,7 +304,7 @@ jobs:
330304
name: Pytest MacOS
331305
strategy:
332306
matrix:
333-
python-version: ['3.11', '3.12']
307+
python-version: ['3.11', '3.12', '3.13']
334308
runs-on: macos-13
335309
steps:
336310
- name: Check out source repository

dev_tools/requirements/dev-np2.env.txt

Lines changed: 0 additions & 26 deletions
This file was deleted.

dev_tools/requirements/dev.env.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44

55
-r deps/cirq-all.txt
66
-r deps/dev-tools.txt
7-

0 commit comments

Comments
 (0)