Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove test randomization on mac #1481

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/build-wheel-macos-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,7 @@ jobs:

- name: Install Python dependencies
run: |
# During the 0.10.0 release cycle we discovered that having exactly 2700 test items distributed on
# exactly 3 cores (e.g. GH M1 runner) produces a lot of test failures. Randomizing the test order
# (pytest-randomly) fixes the issue for now.
python${{ matrix.python_version }} -m pip install pytest pytest-xdist pytest-mock pytest-randomly
python${{ matrix.python_version }} -m pip install pytest pytest-xdist pytest-mock

- name: Install PennyLane Plugins
run: |
Expand All @@ -465,7 +462,7 @@ jobs:
run: |
python${{ matrix.python_version }} -m pytest frontend/test/pytest -n auto
python${{ matrix.python_version }} -m pytest frontend/test/pytest --backend="lightning.kokkos" -n auto
python${{ matrix.python_version }} -m pytest frontend/test/async_tests -p no:randomly
python${{ matrix.python_version }} -m pytest frontend/test/async_tests
python${{ matrix.python_version }} -m pytest frontend/test/pytest --runbraket=LOCAL -n auto
python${{ matrix.python_version }} -m pytest frontend/test/test_oqc/oqc -n auto

Expand Down