Continuous Integration - Daily #1239
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Integration - Daily | |
| on: | |
| schedule: | |
| # Checks out main by default. | |
| - cron: '0 0 * * *' | |
| # Allow manual invocation. | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| pytest: | |
| if: github.repository_owner == 'quantumlib' | |
| name: Pytest Ubuntu | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13', '3.14'] | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements.txt | |
| dev_tools/requirements/**/*.txt | |
| - name: Install system packages | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install $(cat apt-system-requirements.txt) | |
| - name: Install requirements | |
| run: | | |
| pip install --upgrade "cirq~=1.0.dev" "cirq-core[contrib]~=1.0.dev" | |
| pip install \ | |
| -r dev_tools/requirements/deps/pylint.txt \ | |
| -r dev_tools/requirements/deps/pytest.txt \ | |
| -r dev_tools/requirements/deps/notebook.txt | |
| - name: Pytest check | |
| run: check/pytest -n logical --enable-slow-tests | |
| windows: | |
| if: github.repository_owner == 'quantumlib' | |
| name: Pytest Windows | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13', '3.14'] | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements.txt | |
| dev_tools/requirements/**/*.txt | |
| - name: Install requirements | |
| run: | | |
| pip install --upgrade "cirq~=1.0.dev" "cirq-core[contrib]~=1.0.dev" | |
| pip install \ | |
| -r dev_tools/requirements/deps/pylint.txt \ | |
| -r dev_tools/requirements/deps/pytest.txt \ | |
| -r dev_tools/requirements/deps/notebook.txt | |
| shell: bash | |
| - name: Pytest Windows | |
| run: check/pytest -n logical --ignore=cirq-core/cirq/contrib --enable-slow-tests | |
| shell: bash | |
| macos: | |
| if: github.repository_owner == 'quantumlib' | |
| name: Pytest MacOS | |
| strategy: | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13', '3.14'] | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: 'x64' | |
| cache: 'pip' | |
| cache-dependency-path: | | |
| **/requirements.txt | |
| dev_tools/requirements/**/*.txt | |
| - name: Install requirements | |
| run: | | |
| pip install --upgrade "cirq~=1.0.dev" "cirq-core[contrib]~=1.0.dev" | |
| pip install \ | |
| -r dev_tools/requirements/deps/pylint.txt \ | |
| -r dev_tools/requirements/deps/pytest.txt \ | |
| -r dev_tools/requirements/deps/notebook.txt | |
| - name: Pytest check | |
| run: check/pytest -n logical --ignore=cirq-core/cirq/contrib --enable-slow-tests |