Skip to content

Commit

Permalink
Update actions/checkout (#669)
Browse files Browse the repository at this point in the history
* Update actions/checkout

* Auto update version

* trigger ci

* Update actions/setup-python

* Update actions/cache

* Update actions.

* Update cov file names.

* Use github.run_id to mark files.

* Auto update version

* trigger ci

* Upgrade download actions.

* Revert actions/download

* Revert wheel_linux_*.yml

* Update .github/CHANGELOG.md

Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>

---------

Co-authored-by: Dev version update bot <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
  • Loading branch information
3 people committed Apr 8, 2024
1 parent c3fefb2 commit 4bca990
Show file tree
Hide file tree
Showing 22 changed files with 89 additions and 86 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@

### Improvements

* Upgrade GitHub actions versions from v3 to v4.
[(#669)](https://github.com/PennyLaneAI/pennylane-lightning/pull/669)

* Initialize the private attributes `gates_indices_` and `generators_indices_` of `StateVectorKokkos` using the definitions of the `Pennylane::Gates::Constant` namespace.
[(#641)](https://github.com/PennyLaneAI/pennylane-lightning/pull/641)

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_cache_Kokkos_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
steps:
- name: Cache installation directories
id: kokkos-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ github.workspace}}/Kokkos_install/${{ matrix.exec_model }}
key: ${{ inputs.os }}-kokkos${{ matrix.kokkos_version }}-${{ matrix.exec_model }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run:
Expand All @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: sudo apt update && sudo apt -y install python3 python3-pip && python -m pip install pip~=22.0 && python3 -m pip install -r requirements-dev.txt
Expand All @@ -54,10 +54,10 @@ jobs:

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post_release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/post_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre_release_version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/set_wheel_build_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

steps:
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Python version
id: pyver
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests_gpu_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ jobs:
nvidia-smi
- name: Checkout PennyLane-Lightning-GPU
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.9'
Expand Down Expand Up @@ -185,7 +185,7 @@ jobs:
nvidia-smi
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-tags: true
path: main
Expand All @@ -204,7 +204,7 @@ jobs:
git fetch --tags --force
git checkout $(git tag | sort -V | tail -1)
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.9'
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: pennylane
repository: PennyLaneAI/pennylane
Expand Down Expand Up @@ -337,7 +337,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download coverage reports
uses: actions/download-artifact@v3
Expand All @@ -356,7 +356,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download coverage reports
uses: actions/download-artifact@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests_gpu_kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ jobs:
cp -r ${{ github.workspace }}/Kokkos_install/${{ matrix.exec_model }}/* ${{ github.workspace }}/Kokkos
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.9'
Expand Down Expand Up @@ -224,7 +224,7 @@ jobs:
cp -r ${{ github.workspace }}/Kokkos_install/${{ matrix.exec_model }}/* ${{ github.workspace }}/Kokkos
- name: Checkout PennyLane-Lightning
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: main
fetch-tags: true
Expand All @@ -245,7 +245,7 @@ jobs:
git log -1 --format='%H'
git status
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.9'
Expand All @@ -261,7 +261,7 @@ jobs:
- name: Checkout PennyLane for release build
if: inputs.pennylane-version == 'release'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: pennylane
repository: PennyLaneAI/pennylane
Expand Down

0 comments on commit 4bca990

Please sign in to comment.