Skip to content

Commit

Permalink
Use pytest directly, get path as posix
Browse files Browse the repository at this point in the history
  • Loading branch information
rauletorresc committed Aug 7, 2024
1 parent 1ab00ce commit 181daf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests_lkcpu_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,9 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install openfermionpyscf
if [ '${{ inputs.lightning-version }}' != 'stable' ]; then
python -m pip install . -vv
SKIP_COMPILATION=True python -m pip install . -vv
fi
python -m pip install ${{ github.workspace }}/$WHEEL_NAME --no-deps
ls build/lib.*/pennylane_lightning
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
Expand Down Expand Up @@ -246,9 +245,8 @@ jobs:
- name: Run PennyLane-Lightning unit tests
run: |
cd main/
ls build/lib.*/pennylane_lightning/
DEVICENAME=`echo ${{ matrix.pl_backend }} | sed "s/_/./g"`
PL_DEVICE=${DEVICENAME} python -m pytest tests/ $COVERAGE_FLAGS --splits 7 --group ${{ matrix.group }} \
PL_DEVICE=${DEVICENAME} pytest tests/ $COVERAGE_FLAGS --splits 7 --group ${{ matrix.group }} \
--store-durations --durations-path='.github/workflows/python_lightning_kokkos_test_durations.json' --splitting-algorithm=least_duration
mv .github/workflows/python_lightning_kokkos_test_durations.json ${{ github.workspace }}/.test_durations-${{ matrix.exec_model }}-${{ matrix.group }}
pl-device-test --device ${DEVICENAME} --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ def get_c_interface():
# Fixed location at the root of the project
wheel_mode_location = package_root.parent / lib_name
if wheel_mode_location.is_file():
return "LightningKokkosSimulator", wheel_mode_location
return "LightningKokkosSimulator", wheel_mode_location.as_posix()

Check warning on line 867 in pennylane_lightning/lightning_kokkos/lightning_kokkos.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_kokkos/lightning_kokkos.py#L865-L867

Added lines #L865 - L867 were not covered by tests

# Editable mode:
# The build directory contains a folder which varies according to the platform:
Expand Down

0 comments on commit 181daf2

Please sign in to comment.