Run Catalyst pytests for weekly flaky test checking #75
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: Run Catalyst pytests for weekly flaky test checking | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| # Run every weekend on Saturday at 23:40 EDT (cron is in UTC) | |
| # https://crontab.cronhub.io/ | |
| - cron: "40 23 * * SAT" | |
| workflow_dispatch: | |
| jobs: | |
| weekly-flaky-test-run: | |
| name: Run weekly flaky tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout Catalyst repo | |
| uses: actions/checkout@v4 | |
| - name: Install Deps | |
| run: | | |
| python3 -m pip install -r requirements.txt | |
| # Install graphviz for testing graph visualization | |
| sudo apt-get install -y graphviz | |
| pip install --pre -U --extra-index-url https://test.pypi.org/simple/ PennyLane-Catalyst | |
| - name: Run Python Pytest Tests with flaky Checks | |
| run: | | |
| make pytest ENABLE_FLAKY=ON |