diff --git a/.github/workflows/tests_linux.yml b/.github/workflows/tests_linux.yml index bfb41fbdda..fe0de3cdb1 100644 --- a/.github/workflows/tests_linux.yml +++ b/.github/workflows/tests_linux.yml @@ -182,6 +182,8 @@ jobs: - name: Run PennyLane-Lightning unit tests run: | + # TODO: Remove installing pytest-xdist with release v0.36.0 + python -m pip install pytest-xdist cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest -n auto tests/ -k "not unitary_correct" $COVERAGE_FLAGS @@ -391,6 +393,8 @@ jobs: - name: Run PennyLane-Lightning unit tests run: | + # TODO: Remove installing pytest-xdist with release v0.36.0 + python -m pip install pytest-xdist cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` OMP_NUM_THREADS=1 PL_DEVICE=${DEVICENAME} python -m pytest -n auto tests/ -k "not unitary_correct" $COVERAGE_FLAGS @@ -590,6 +594,8 @@ jobs: - name: Run PennyLane-Lightning unit tests if: ${{ matrix.pl_backend != 'all'}} run: | + # TODO: Remove installing pytest-xdist with release v0.36.0 + python -m pip install pytest-xdist cd main/ DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"` PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS @@ -610,6 +616,8 @@ jobs: - name: Run PennyLane-Lightning unit tests for lightning.qubit with all devices installed if: ${{ matrix.pl_backend == 'all' }} run: | + # TODO: Remove installing pytest-xdist with release v0.36.0 + python -m pip install pytest-xdist cd main/ OMP_NUM_THREADS=1 PL_DEVICE=lightning.qubit python -m pytest -n auto tests/ -k "not unitary_correct" $COVERAGE_FLAGS PL_DEVICE=lightning.qubit python -m pytest tests/ -k "unitary_correct" $COVERAGE_FLAGS --cov-append diff --git a/pennylane_lightning/core/_version.py b/pennylane_lightning/core/_version.py index 86e85a246a..88f51b9d67 100644 --- a/pennylane_lightning/core/_version.py +++ b/pennylane_lightning/core/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.36.0-dev22" +__version__ = "0.36.0-dev23" diff --git a/requirements.txt b/requirements.txt index c888135fa8..334ac49262 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ pennylane>=0.34 pybind11 pytest~=8.0.0 pytest-cov -pytest-mock \ No newline at end of file +pytest-mock +pytest-xdist