Skip to content

Commit

Permalink
cd main
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentmr committed Sep 11, 2023
1 parent 6e1d907 commit 9bf4513
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/tests_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Testing (Linux)
on:
workflow_call:
inputs:
lightning-kokkos-version:
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)
Expand All @@ -23,7 +23,7 @@ env:
OMP_NUM_THREADS: "2"

concurrency:
group: tests_linux-${{ github.ref }}-${{ inputs.lightning-kokkos-version }}-${{ inputs.pennylane-version }}
group: tests_linux-${{ github.ref }}-${{ inputs.lightning-version }}-${{ inputs.pennylane-version }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -107,11 +107,13 @@ jobs:
uses: actions/checkout@v3
with:
path: main
fetch-depth: ${{ inputs.lightning-kokkos-version == 'stable' && 0 || 2 }}
fetch-depth: ${{ inputs.lightning-version == 'stable' && 0 || 2 }}

- name: Switch to stable build of Lightning-Kokkos
if: inputs.lightning-kokkos-version == 'stable'
run: git checkout $(git tag | sort -V | tail -1)
if: inputs.lightning-version == 'stable'
run: |
cd main
git checkout $(git tag | sort -V | tail -1)
- uses: actions/setup-python@v4
name: Install Python
Expand All @@ -129,6 +131,7 @@ jobs:
- name: Install Latest PennyLane
if: inputs.pennylane-version == 'stable'
run: |
cd main
python -m pip install pennylane==$(git tag | sort -V | tail -1)
- name: Install ML libraries for interfaces
Expand Down

0 comments on commit 9bf4513

Please sign in to comment.