From 7c4e9e912437cbdfcdd10593d455de883e6c9693 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 6 Sep 2023 15:34:52 -0500 Subject: [PATCH] ci(backport): Update GitHub Actions (#2318) * Backport: - PR https://github.com/scikit-hep/pyhf/pull/2307 - PR https://github.com/scikit-hep/pyhf/pull/2313 --- .github/workflows/bump-version.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/dependencies-head.yml | 12 ++++++------ .github/workflows/docker.yml | 2 +- .github/workflows/docs.yml | 7 +++++-- .github/workflows/lint.yml | 2 +- .github/workflows/lower-bound-requirements.yml | 2 +- .github/workflows/merged.yml | 2 +- .github/workflows/notebooks.yml | 2 +- .github/workflows/publish-package.yml | 2 +- .github/workflows/release_tests.yml | 2 +- 12 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index eb171387a0..607db63612 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -47,7 +47,7 @@ jobs: steps: # Use GitHub PAT to authenticate so other workflows trigger - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.target_branch }} fetch-depth: 0 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a28639ee2b..fd9eee8428 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: python-version: '3.11' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 110ca0eb2a..8319caaeb3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/dependencies-head.yml b/.github/workflows/dependencies-head.yml index 6c8a0dab30..c555793650 100644 --- a/.github/workflows/dependencies-head.yml +++ b/.github/workflows/dependencies-head.yml @@ -20,7 +20,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -46,7 +46,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -76,7 +76,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -102,7 +102,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -127,7 +127,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -163,7 +163,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5b8f2b675b..245f11ec71 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Prepare diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c749202171..a1d69bb40d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -39,7 +39,10 @@ jobs: - name: Install apt-get dependencies run: | sudo apt-get update - sudo apt-get -qq install pandoc + # Ubuntu 22.04's pandoc is too old (2.9.2.x), so install manually + # until the ubuntu-latest updates. + curl --silent --location --remote-name https://github.com/jgm/pandoc/releases/download/3.1.6.2/pandoc-3.1.6.2-1-amd64.deb + sudo apt-get install ./pandoc-*amd64.deb - name: Check docstrings run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e84cf76ff1..fdce2d7b28 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 diff --git a/.github/workflows/lower-bound-requirements.yml b/.github/workflows/lower-bound-requirements.yml index 37b3c741a2..5a97ad5289 100644 --- a/.github/workflows/lower-bound-requirements.yml +++ b/.github/workflows/lower-bound-requirements.yml @@ -17,7 +17,7 @@ jobs: python-version: ['3.7'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 diff --git a/.github/workflows/merged.yml b/.github/workflows/merged.yml index 3ea8a5cc4d..3923caaffe 100644 --- a/.github/workflows/merged.yml +++ b/.github/workflows/merged.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest if: github.event.pull_request.merged steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Trigger Binder build run: | # Use Binder build API to trigger repo2docker to build image on Google Cloud and Turing Institute Binder Federation clusters diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 58f74b1447..5c2c5a0aa4 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -19,7 +19,7 @@ jobs: python-version: ['3.10'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 51a009e2ce..eb956eb506 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -29,7 +29,7 @@ jobs: name: Build Python distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/release_tests.yml b/.github/workflows/release_tests.yml index e6ec5a7938..475f51d292 100644 --- a/.github/workflows/release_tests.yml +++ b/.github/workflows/release_tests.yml @@ -24,7 +24,7 @@ jobs: python-version: '3.10' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4