This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
Rename qubitstatevector to stateprep #883
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: Formatting check | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | |
python -m pip install --upgrade pip | |
pip install black click==8.0.4 | |
- uses: actions/checkout@v2 | |
- name: Run Black | |
run: black -l 100 pennylane_lightning_gpu/ tests/ --check | |
format-cpp: | |
name: Format (C++) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Install dependencies | |
run: sudo apt update && sudo apt -y install clang-format-12 python3 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run formatter | |
run: ./bin/format --check --cfversion 12 ./pennylane_lightning_gpu/src |