From 2ab3091adc5dc2ad348aac59b997838f4f1fc30f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:40:33 +0000 Subject: [PATCH] MAINT: update GitHub actions (#35) * MAINT: bump actions/download-artifact from 3 to 4 (#34) * MAINT: bump actions/checkout from 3 to 4 (#33) * MAINT: bump actions/setup-python from 4 to 5 * MAINT: bump actions/upload-artifact from 3 to 4 (#31) and update syntax * MAINT: bump peter-evans/create-pull-request from 4 to 6 (#32) * MAINT: run actions on `ubuntu-22.04` --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Remco de Boer <29308176+redeboer@users.noreply.github.com> --- .github/workflows/constraints.yml | 18 +++++++++++------- .github/workflows/notebook.yml | 4 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/constraints.yml b/.github/workflows/constraints.yml index 9000031..3cac60d 100644 --- a/.github/workflows/constraints.yml +++ b/.github/workflows/constraints.yml @@ -20,15 +20,16 @@ jobs: name: Update pip constraints runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: "3.8" - run: pip install pip-tools - run: pip-compile --no-annotate --strip-extras --upgrade binder/requirements.in - run: pip-compile --no-annotate --strip-extras --upgrade requirements.in - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: pip-constraints path: | binder/requirements.txt requirements.txt @@ -40,7 +41,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ComPWA/update-pre-commit@main push: @@ -50,10 +51,13 @@ jobs: - pip-constraints - pre-commit steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + with: + merge-multiple: true + path: artifact - run: ls -A - name: Move artifacts to correct location run: | @@ -82,7 +86,7 @@ jobs: - name: Create Pull Request if: >- github.event_name == 'workflow_dispatch' - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v6 with: commit-message: "MAINT: update pip constraints and pre-commit" committer: GitHub diff --git a/.github/workflows/notebook.yml b/.github/workflows/notebook.yml index 290dd93..10d3e87 100644 --- a/.github/workflows/notebook.yml +++ b/.github/workflows/notebook.yml @@ -6,9 +6,9 @@ on: jobs: pytest: name: Run all notebooks - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@master with: python-version: "3.9"