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

Pin pytest version #624

Merged
merged 5 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
* Fix apply state vector when using a Lightning handle.
[(#622)](https://github.com/PennyLaneAI/pennylane-lightning/pull/622)

* Pinning Pytest to a version compatible with Flaky.
[(#624)](https://github.com/PennyLaneAI/pennylane-lightning/pull/624)

### Contributors

This release contains contributions from (in alphabetical order):
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/wheel_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,8 @@ jobs:

CIBW_BUILD_VERBOSITY: 3

CIBW_TEST_REQUIRES: pytest pytest-cov pytest-mock flaky

CIBW_BEFORE_TEST: |
python -m pip install pytest-benchmark git+https://github.com/PennyLaneAI/pennylane.git@master
python -m pip install -r requirements-tests.txt
if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" pip install -e . -vv; fi

CIBW_TEST_COMMAND: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/wheel_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,8 @@ jobs:
PATH="/opt/rh/devtoolset-11/root/usr/bin:$PATH" \
PL_BACKEND="${{ matrix.pl_backend }}"

# Testing of built wheels
CIBW_TEST_REQUIRES: pytest pytest-cov pytest-mock flaky

CIBW_BEFORE_TEST: |
python -m pip install pytest-benchmark git+https://github.com/PennyLaneAI/pennylane.git@master
python -m pip install -r requirements-tests.txt
if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" pip install -e . -vv; fi

CIBW_TEST_COMMAND: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/wheel_macos_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ jobs:
CMAKE_ARGS="-DCMAKE_CXX_COMPILER_TARGET=arm64-apple-macos11 -DCMAKE_SYSTEM_NAME=Darwin -DCMAKE_SYSTEM_PROCESSOR=ARM64 -DENABLE_OPENMP=OFF" \
PL_BACKEND="${{ matrix.pl_backend }}"

# Testing of built wheels
CIBW_TEST_REQUIRES: pytest pytest-cov pytest-mock flaky

CIBW_BEFORE_TEST: |
python -m pip install pytest-benchmark git+https://github.com/PennyLaneAI/pennylane.git@master
python -m pip install -r requirements-tests.txt
if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" pip install -e . -vv; fi

CIBW_TEST_COMMAND: |
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/wheel_macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
cancel-in-progress: true

jobs:
set_wheel_build_matrix:
set_wheel_build_matrix:
name: "Set wheel build matrix"
uses: ./.github/workflows/set_wheel_build_matrix.yml
with:
Expand Down Expand Up @@ -137,11 +137,8 @@ jobs:

PL_BACKEND: ${{ matrix.pl_backend }}

# Testing of built wheels
CIBW_TEST_REQUIRES: pytest pytest-cov pytest-mock flaky

CIBW_BEFORE_TEST: |
python -m pip install pytest-benchmark git+https://github.com/PennyLaneAI/pennylane.git@master
python -m pip install -r requirements-tests.txt
if ${{ matrix.pl_backend == 'lightning_kokkos'}}; then SKIP_COMPILATION=True PL_BACKEND="lightning_qubit" pip install -e . -vv; fi

CIBW_TEST_COMMAND: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/wheel_win_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,8 @@ jobs:
CIBW_BEFORE_BUILD: |
python -m pip install pybind11 cmake~=3.24.0 build

# Testing of built wheels
CIBW_TEST_REQUIRES: pytest pytest-cov pytest-mock flaky

CIBW_BEFORE_TEST: |
python -m pip install pytest-benchmark git+https://github.com/PennyLaneAI/pennylane.git@master
python -m pip install -r requirements-tests.txt

CIBW_TEST_COMMAND: |
pl-device-test --device=lightning.qubit --skip-ops -x --tb=short --no-flaky-report
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.35.0-dev21"
__version__ = "0.35.0-dev22"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ git+https://github.com/PennyLaneAI/pennylane.git@master
ninja
flaky
pybind11
pytest
pytest~=8.0.0
pytest-benchmark
pytest-cov
pytest-mock
Expand Down
6 changes: 6 additions & 0 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pytest~=8.0.0
pytest-cov
pytest-mock
flaky
pytest-benchmark
git+https://github.com/PennyLaneAI/pennylane.git@master
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ ninja
flaky
pennylane>=0.34
pybind11
pytest
pytest~=8.0.0
pytest-cov
pytest-mock
Loading