From e8977a0571173d7c8ba5df75d21c95126c978e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Ri=C3=9Fe?= <9308656+matrss@users.noreply.github.com> Date: Wed, 15 Nov 2023 19:00:59 +0100 Subject: [PATCH] Update actions used in the workflows (#2098) Updates actions/checkout to v4 and actions/setup-python to v4. Some trailing whitespace was removed by my editor as well. --- .github/workflows/build_docs_gallery.yml | 4 ++-- .github/workflows/python-flake8.yml | 4 ++-- .github/workflows/testing.yml | 6 +++--- .github/workflows/testing_gsoc.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_docs_gallery.yml b/.github/workflows/build_docs_gallery.yml index 2a2dea4db..b5732cc43 100644 --- a/.github/workflows/build_docs_gallery.yml +++ b/.github/workflows/build_docs_gallery.yml @@ -1,6 +1,6 @@ name: Build Gallery -on: +on: pull_request: inputs: branch_name: @@ -27,7 +27,7 @@ jobs: steps: - name: Trust My Directory run: git config --global --add safe.directory /__w/MSS/MSS - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Create gallery timeout-minutes: 25 diff --git a/.github/workflows/python-flake8.yml b/.github/workflows/python-flake8.yml index 0123278fb..b398d2561 100644 --- a/.github/workflows/python-flake8.yml +++ b/.github/workflows/python-flake8.yml @@ -22,9 +22,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: "3.10" - name: Lint with flake8 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f39b34fb3..4e6807b59 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -1,6 +1,6 @@ name: Pytest MSS -on: +on: workflow_call: inputs: xdist: @@ -35,7 +35,7 @@ jobs: - name: Trust My Directory run: git config --global --add safe.directory /__w/MSS/MSS - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check for changed dependencies run: | @@ -104,7 +104,7 @@ jobs: - name: Collect coverage if: ${{ success() && inputs.event_name == 'push' && inputs.branch_name == 'develop' && inputs.xdist == 'no'}} - env: + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd $GITHUB_WORKSPACE \ diff --git a/.github/workflows/testing_gsoc.yml b/.github/workflows/testing_gsoc.yml index 6504ba9c0..17c5cf4a5 100644 --- a/.github/workflows/testing_gsoc.yml +++ b/.github/workflows/testing_gsoc.yml @@ -28,7 +28,7 @@ jobs: - name: Trust My Directory run: git config --global --add safe.directory /__w/MSS/MSS - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check for changed dependencies run: | @@ -93,7 +93,7 @@ jobs: - name: Collect coverage if: ${{ success() }} - env: + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd $GITHUB_WORKSPACE \