Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add weekly CI workflow to test all notebooks (#6046)
* Add a test to run all notebooks * Add a Weekly CI workflow to run all notebooks test * Temporarily increase cadence to daily runs for validation
- Loading branch information
1 parent
ae62250
commit 31bf1ac
Showing
3 changed files
with
83 additions
and
21 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,38 @@ | ||
name: Continuous Integration - Weekly | ||
|
||
on: | ||
schedule: | ||
# Checks out master by default. | ||
# TODO (#6037) - replace with weekly cadence after verification | ||
- cron: '0 0 * * *' | ||
# - cron: '0 0 * * 0' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
notebooks-stable: | ||
name: All Notebooks Isolated Test against Cirq stable | ||
env: | ||
NOTEBOOK_PARTITIONS: 4 | ||
strategy: | ||
matrix: | ||
# partitions should be named partition-0 to partition-(NOTEBOOK_PARTITIONS-1) | ||
partition: [partition-0, partition-1, partition-2, partition-3] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
- name: Install requirements | ||
run: pip install -r dev_tools/requirements/isolated-base.env.txt | ||
- name: Notebook tests | ||
run: check/pytest -n auto -m weekly dev_tools/notebooks/isolated_notebook_test.py -k ${{matrix.partition}} | ||
- uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: notebook-outputs | ||
path: out |
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
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