From a74579b374918a006d5c264637ac8fb7cc4a5195 Mon Sep 17 00:00:00 2001 From: Jonas Schuhmacher Date: Thu, 12 Sep 2024 10:53:32 +0200 Subject: [PATCH] Update GitHub Actions to use the latest versions. Upgraded various GitHub Actions from v3 to v4 across workflows. This includes actions such as `checkout`, `upload-artifact`, and `download-artifact` to ensure compatibility with the latest features and improvements. --- .github/workflows/build-and-test.yml | 4 ++-- .github/workflows/docs.yml | 2 +- .github/workflows/draft-pdf.yml | 2 +- .github/workflows/wheels.yml | 12 ++++++------ 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 90f8701..3eb8a56 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -20,7 +20,7 @@ jobs: matrix: os: [windows-latest, ubuntu-latest, macos-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ilammy/msvc-dev-cmd@v1 if: matrix.os == 'windows-latest' - name: Build @@ -42,7 +42,7 @@ jobs: matrix: os: [windows-latest, ubuntu-latest, macos-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ilammy/msvc-dev-cmd@v1 if: matrix.os == 'windows-latest' - name: Install Conda environment from environment.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9eff77a..0725b0b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y doxygen - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: lfs: true - name: Install polyhedral-gravity from recent source for sphinx.ext.autodoc diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml index 837c550..ef1ca30 100644 --- a/.github/workflows/draft-pdf.yml +++ b/.github/workflows/draft-pdf.yml @@ -23,7 +23,7 @@ jobs: # This should be the path to the paper within your repo. paper-path: paper/paper.md - name: Upload - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: paper # This is the output path where Pandoc will write the compiled diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f167f0d..70ec091 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -20,7 +20,7 @@ jobs: matrix: os: [windows-latest, ubuntu-latest, macos-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 ############################# LINUX WHEELS ############################# # In case of Linux we need to install compiler and build tools before building the wheels # We set-up QEMU to enable aarch64 builds in the GitHub Runner (which is x86_64 based) @@ -74,7 +74,7 @@ jobs: package-dir: . output-dir: dist if: matrix.os == 'windows-latest' - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: dist/*.whl @@ -83,10 +83,10 @@ jobs: name: Make SDist runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build SDist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: dist/*.tar.gz @@ -101,7 +101,7 @@ jobs: id-token: write runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: artifact path: dist @@ -120,7 +120,7 @@ jobs: id-token: write runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: artifact path: dist