Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add daily CI job for testing Cirq installation from a pre-release PyPI wheels. Fixes #6130
- Loading branch information
1 parent
221d675
commit 8a41b4a
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Continuous Integration - Daily | ||
|
||
on: | ||
schedule: | ||
# Checks out master by default. | ||
- cron: '0 0 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pytest: | ||
name: Pytest Ubuntu | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10'] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: 'x64' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-${{ hashFiles('**/requirements.txt', 'dev_tools/requirements/**/*.txt') }} | ||
- name: Install requirements | ||
run: | | ||
pip install --pre cirq | ||
pip install \ | ||
-r dev_tools/requirements/deps/format.txt \ | ||
-r dev_tools/requirements/deps/pylint.txt \ | ||
-r dev_tools/requirements/deps/pytest.txt | ||
- name: Run Quil dependencies | ||
run: docker-compose -f cirq-rigetti/docker-compose.test.yaml up -d | ||
- name: Pytest check | ||
run: check/pytest --ignore=cirq-core/cirq/contrib --rigetti-integration | ||
- name: Stop Quil dependencies | ||
run: docker-compose -f cirq-rigetti/docker-compose.test.yaml down |