This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
Test QuantumPhaseEstimation and associated decomp values #813
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/cancel-workflow-action@0.11.0 | |
with: | |
access_token: ${{ github.token }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- 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_kokkos/ tests/ --check | |
format-cpp: | |
name: Format (C++) | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/cancel-workflow-action@0.11.0 | |
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_kokkos/src |