Randomized tests #158
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
name: Randomized tests | |
on: | |
schedule: | |
- cron: '42 3 * * *' | |
workflow_dispatch: | |
jobs: | |
randomized_tests: | |
if: github.repository_owner == 'Qiskit' | |
name: Randomized tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install -U -r requirements.txt -c constraints.txt | |
python -m pip install -U -r requirements-dev.txt coveralls -c constraints.txt | |
python -m pip install -c constraints.txt -e . | |
python -m pip install "qiskit-ibmq-provider" -c constraints.txt | |
python -m pip install "qiskit-aer" | |
env: | |
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" | |
- name: Run randomized tests | |
run: make test_randomized | |
env: | |
RUST_BACKTRACE: 1 | |
- name: Create comment on failed test run | |
if: ${{ failure() }} | |
uses: peter-evans/create-or-update-comment@v2 | |
with: | |
issue-number: 2645 | |
body: | | |
Randomized tests failed at commit ${{ github.sha }}. | |
_Logs_: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}. |