Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 26 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
quick_test:
if: github.repository_owner == 'quantumlib'
name: Misc check
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -36,7 +36,7 @@ jobs:
packaging_test:
if: github.repository_owner == 'quantumlib'
name: Packaging test
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -54,7 +54,7 @@ jobs:
format:
if: github.repository_owner == 'quantumlib'
name: Format check
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Install changed files test dependencies
run: dev_tools/conf/pip-install-minimal-for-pytest-changed-files.sh
- name: Changed files test
run: check/pytest-changed-files -n auto
run: check/pytest-changed-files -n logical
lint:
if: github.repository_owner == 'quantumlib'
name: Lint check
Expand All @@ -132,7 +132,7 @@ jobs:
doc_test:
if: github.repository_owner == 'quantumlib'
name: Doc test
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -148,7 +148,7 @@ jobs:
nbformat:
if: github.repository_owner == 'quantumlib'
name: Notebook formatting
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -164,7 +164,7 @@ jobs:
shellcheck:
if: github.repository_owner == 'quantumlib'
name: Shell check
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -175,7 +175,7 @@ jobs:
isolated-modules:
if: github.repository_owner == 'quantumlib'
name: Isolated pytest Ubuntu
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04-x64-8-core
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -187,14 +187,14 @@ jobs:
- name: Install dependencies
run: pip install -r dev_tools/requirements/isolated-base.env.txt
- name: Test each module in isolation
run: pytest -n auto --enable-slow-tests dev_tools/packaging/isolated_packages_test.py
run: pytest -n logical --enable-slow-tests dev_tools/packaging/isolated_packages_test.py
pytest:
if: github.repository_owner == 'quantumlib'
name: Pytest Ubuntu
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04-x64-8-core
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -216,7 +216,7 @@ jobs:
pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager -r dev_tools/requirements/dev.env.txt
- name: Pytest check
run: check/pytest -n auto --durations=20 --junit-xml=pytest-ubuntu-report.xml
run: check/pytest -n logical --durations=20 --junit-xml=pytest-ubuntu-report.xml
- name: Persist the test report
if: github.event_name == 'merge_group' && matrix.python-version == '3.11'
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
Expand All @@ -226,7 +226,7 @@ jobs:
pip-compile:
if: github.repository_owner == 'quantumlib'
name: Check consistency of requirements
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -243,7 +243,7 @@ jobs:
build_protos:
if: github.repository_owner == 'quantumlib'
name: Build protos
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -262,7 +262,7 @@ jobs:
coverage:
if: github.repository_owner == 'quantumlib'
name: Coverage check
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04-x64-8-core
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -286,7 +286,7 @@ jobs:
pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager -r dev_tools/requirements/dev.env.txt
- name: Coverage check
run: check/pytest-and-incremental-coverage -n auto
run: check/pytest-and-incremental-coverage -n logical
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
env:
Expand All @@ -297,7 +297,7 @@ jobs:
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
runs-on: windows-2022
runs-on: windows-2022-x64-8-core
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -317,15 +317,16 @@ jobs:
- name: Pytest Windows
run: |
source dev_tools/pypath
check/pytest -n auto --durations=20 --ignore=cirq-core/cirq/contrib
check/pytest -n logical --durations=20 --ignore=cirq-core/cirq/contrib
shell: bash
macos:
if: github.repository_owner == 'quantumlib'
name: Pytest MacOS
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
runs-on: macos-15
# macos-15-large is Intel; macos-15-xlarge is ARM and the one we want.
runs-on: macos-15-xlarge
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -343,7 +344,7 @@ jobs:
pip install --upgrade setuptools wheel
pip install --upgrade --upgrade-strategy eager -r dev_tools/requirements/no-contrib.env.txt
- name: Pytest check
run: check/pytest -n auto --durations=20 --ignore=cirq-core/cirq/contrib
run: check/pytest -n logical --durations=20 --ignore=cirq-core/cirq/contrib
notebooks-stable:
if: github.repository_owner == 'quantumlib'
name: Changed Notebooks Isolated Test against Cirq stable
Expand All @@ -367,7 +368,7 @@ jobs:
- name: Install requirements
run: pip install -r dev_tools/requirements/isolated-base.env.txt
- name: Notebook tests
run: check/pytest -n auto -m slow dev_tools/notebooks/isolated_notebook_test.py -k ${{matrix.partition}}
run: check/pytest -n logical -m slow dev_tools/notebooks/isolated_notebook_test.py -k ${{matrix.partition}}
- name: Persist the outputs
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: failure()
Expand All @@ -377,7 +378,7 @@ jobs:
notebooks-branch:
if: github.repository_owner == 'quantumlib'
name: Notebook Tests against PR
runs-on: ubuntu-22.04
runs-on: ubuntu-22.04-x64-8-core
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -389,7 +390,7 @@ jobs:
- name: Install requirements
run: pip install -r dev_tools/requirements/notebooks.env.txt
- name: Notebook tests
run: check/pytest -n auto -m slow dev_tools/notebooks/notebook_test.py
run: check/pytest -n logical -m slow dev_tools/notebooks/notebook_test.py
- name: Persist the outputs
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: failure()
Expand All @@ -399,7 +400,7 @@ jobs:
ts-build:
if: github.repository_owner == 'quantumlib'
name: Bundle file consistency
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand All @@ -414,7 +415,7 @@ jobs:
ts-lint:
if: github.repository_owner == 'quantumlib'
name: Typescript lint check
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand Down Expand Up @@ -446,7 +447,7 @@ jobs:
ts-coverage:
if: github.repository_owner == 'quantumlib'
name: Typescript tests coverage
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
steps:
- name: Check out source repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
label-pr-size:
if: github.repository_owner == 'quantumlib'
name: Update PR size labels
runs-on: ubuntu-24.04
runs-on: ubuntu-slim
timeout-minutes: 5
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
stale:
if: github.repository_owner == 'quantumlib'
name: Label and/or close stale issues and PRs
runs-on: ubuntu-22.04
runs-on: ubuntu-slim
timeout-minutes: 10
permissions:
issues: write
Expand Down