This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
Bump black from 23.7.0 to 24.3.0 #273
Workflow file for this run
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: Testing without binary | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
COVERAGE_FLAGS: "--cov=pennylane_lightning --cov-report=term-missing --cov-report=xml:./coverage.xml --no-flaky-report -p no:warnings --tb=native" | |
concurrency: | |
group: tests_without_binary-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pythontests: | |
name: Python tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
steps: | |
- name: Checkout PennyLane-Lightning | |
uses: actions/checkout@v3 | |
with: | |
path: main | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.9' | |
- name: Get required Python packages | |
run: | | |
cd main | |
python -m pip install -r requirements-dev.txt | |
- name: Install lightning.qubit device | |
run: | | |
cd main | |
python -m pip install -e . -vv | |
env: | |
SKIP_COMPILATION: True | |
- name: Run PennyLane-Lightning unit tests | |
run: | | |
cd main/ | |
python -m pytest tests/ $COVERAGE_FLAGS | |
pl-device-test --device lightning.qubit --skip-ops --shots=20000 $COVERAGE_FLAGS --cov-append | |
pl-device-test --device lightning.qubit --shots=None --skip-ops $COVERAGE_FLAGS --cov-append |