Skip to content

Commit

Permalink
Add release to compat workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Oct 26, 2023
1 parent bebe551 commit fc1f1aa
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 10 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/compat-check-release-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Compat Check w/PL - release/release

on:
pull_request:
workflow_dispatch:

jobs:
# tests_linux:
# name: Lightning Compatibility test (tests_linux) - release/release
# uses: ./.github/workflows/tests_linux.yml
# with:
# lightning-version: release
# pennylane-version: release
# tests_lkokkos_gpu:
# name: Lightning Compatibility test (tests_lkokkos_gpu) - release/release
# uses: ./.github/workflows/tests_gpu_kokkos.yml
# with:
# lightning-version: release
# pennylane-version: release
# tests_lgpu_gpu:
# name: Lightning Compatibility test (tests_lgpu_gpu) - release/release
# uses: ./.github/workflows/tests_gpu_cu11.yml
# with:
# lightning-version: release
# pennylane-version: release
tests_without_binary:
name: Lightning Compatibility test (tests_without_binary) - release/release
uses: ./.github/workflows/tests_without_binary.yml
with:
lightning-version: release
pennylane-version: release
28 changes: 24 additions & 4 deletions .github/workflows/tests_gpu_cu11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ on:
lightning-version:
type: string
required: true
description: The version of lightning to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of Lightning to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pennylane-version:
type: string
required: true
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)

env:
CI_CUDA_ARCH: 86
Expand Down Expand Up @@ -183,14 +183,19 @@ jobs:
fetch-tags: true
path: main

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
cd main
git fetch --tags --force
git checkout $(git tag | sort -V | tail -1)
git log -1 --format='%H'
git status
- uses: actions/setup-python@v4
name: Install Python
Expand Down Expand Up @@ -233,6 +238,21 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install cmake custatevec-cu11 openfermionpyscf
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/tests_gpu_kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
lightning-version:
type: string
required: true
description: The version of lightning to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of Lightning to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pennylane-version:
type: string
required: true
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
push:
branches:
Expand Down Expand Up @@ -236,6 +236,13 @@ jobs:
path: main
fetch-tags: true

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
Expand All @@ -259,6 +266,21 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install openfermionpyscf
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down
70 changes: 68 additions & 2 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
lightning-version:
type: string
required: true
description: The version of lightning to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of Lightning to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pennylane-version:
type: string
required: true
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
push:
branches:
Expand Down Expand Up @@ -97,6 +97,13 @@ jobs:
fetch-tags: true
path: main

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
Expand All @@ -120,6 +127,21 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install openfermionpyscf
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down Expand Up @@ -224,6 +246,13 @@ jobs:
fetch-tags: true
path: main

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
Expand All @@ -247,6 +276,21 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install openfermionpyscf
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down Expand Up @@ -380,6 +424,13 @@ jobs:
fetch-tags: true
path: main

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
Expand Down Expand Up @@ -418,6 +469,21 @@ jobs:
python -m pip install -r requirements-dev.txt
python -m pip install openfermionpyscf
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/tests_without_binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
lightning-version:
type: string
required: true
description: The version of lightning to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of Lightning to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pennylane-version:
type: string
required: true
description: The version of PennyLane to use. Valid values are either 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
description: The version of PennyLane to use. Valid values are either 'release' (most recent release candidate), 'stable' (most recent git-tag) or 'latest' (most recent commit from master)
pull_request:
push:
branches:
Expand Down Expand Up @@ -40,6 +40,13 @@ jobs:
fetch-tags: true
path: main

- name: Switch to release build of Lightning
if: inputs.lightning-version == 'release'
run: |
cd main
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
- name: Switch to stable build of Lightning
if: inputs.lightning-version == 'stable'
run: |
Expand All @@ -59,6 +66,21 @@ jobs:
cd main
python -m pip install -r requirements-dev.txt
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
with:
path: pennylane
repository: PennyLaneAI/pennylane

- name: Switch to release build of PennyLane
if: inputs.pennylane-version == 'release'
run: |
cd pennylane
git fetch --all
git checkout $(git branch -a --list origin/v*rc* | tail -1)
python -m pip uninstall -y pennylane && python -m pip install . -vv
- name: Install Stable PennyLane
if: inputs.pennylane-version == 'stable'
run: |
Expand Down

0 comments on commit fc1f1aa

Please sign in to comment.