From 9f4389824ed4480e637ce8e24c0e4f55f226a0f5 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Wed, 12 Oct 2022 07:13:25 -0500 Subject: [PATCH] Updated actions per prompt from Github --- .github/workflows/conda-package.yml | 22 +++++++++++----------- .github/workflows/cpp_style_checks.yml | 2 +- .github/workflows/generate-coverage.yaml | 6 +++--- .github/workflows/generate-docs.yml | 6 +++--- .github/workflows/os-llvm-sycl-build.yml | 6 +++--- .github/workflows/pre-commit.yml | 8 +++++--- .github/workflows/python_style_checks.yml | 22 +++++++++++++--------- 7 files changed, 39 insertions(+), 33 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 9f551a5c8d..07bb77e3b2 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -20,7 +20,7 @@ jobs: matrix: python: ['3.8', '3.9', '3.10'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -53,7 +53,7 @@ jobs: $CHANNELS \ conda-recipe - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2 @@ -67,7 +67,7 @@ jobs: env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: conda-incubator/setup-miniconda@v2 @@ -91,7 +91,7 @@ jobs: - name: Build conda package run: conda build --no-test --python ${{ matrix.python }} -c intel -c main --override-channels conda-recipe - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2 @@ -111,7 +111,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path @@ -188,7 +188,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - uses: conda-incubator/setup-miniconda@v2 @@ -317,7 +317,7 @@ jobs: python: ['3.8', '3.9', '3.10'] steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} @@ -342,7 +342,7 @@ jobs: python: ['3.8', '3.9'] steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - uses: conda-incubator/setup-miniconda@v2 @@ -376,11 +376,11 @@ jobs: # Needed to be able to run conda index run: conda install conda-build python=${{ matrix.python }} - name: Checkout dpctl repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path @@ -534,7 +534,7 @@ jobs: git clone --recurse-submodules https://github.com/data-apis/array-api-tests array-api-tests cd array-api-tests - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path diff --git a/.github/workflows/cpp_style_checks.yml b/.github/workflows/cpp_style_checks.yml index b16530f967..a450bff627 100644 --- a/.github/workflows/cpp_style_checks.yml +++ b/.github/workflows/cpp_style_checks.yml @@ -14,7 +14,7 @@ jobs: name: clang-format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Run clang-format style check for C/C++ programs. uses: jidicula/clang-format-action@v3.5.1 with: diff --git a/.github/workflows/generate-coverage.yaml b/.github/workflows/generate-coverage.yaml index 0d4688a8f3..ac21ddd29f 100644 --- a/.github/workflows/generate-coverage.yaml +++ b/.github/workflows/generate-coverage.yaml @@ -15,7 +15,7 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} @@ -37,7 +37,7 @@ jobs: sudo apt-get install cmake ninja-build - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.10' architecture: x64 @@ -68,7 +68,7 @@ jobs: make && make install - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 04342a9ccc..bf52935f89 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} - name: Add Intel repository @@ -41,7 +41,7 @@ jobs: sudo apt-get install cmake ninja-build - name: Setup Python if: ${{ !github.event.pull_request || github.event.action != 'closed' }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.10' architecture: x64 @@ -51,7 +51,7 @@ jobs: run: | pip install numpy cython setuptools scikit-build sphinx sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 persist-credentials: false diff --git a/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index f20072ce8c..d67ff4b4dc 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.6.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} @@ -91,7 +91,7 @@ jobs: sudo apt-get install cmake ninja-build libtinfo5 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.9' architecture: x64 @@ -102,7 +102,7 @@ jobs: pip install numpy cython setuptools pytest scikit-build - name: Checkout repo - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 925b8accd7..ded03f6687 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -9,6 +9,8 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.3 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - uses: pre-commit/action@v3.0.0 diff --git a/.github/workflows/python_style_checks.yml b/.github/workflows/python_style_checks.yml index 92ae080f53..2d9d46fd40 100644 --- a/.github/workflows/python_style_checks.yml +++ b/.github/workflows/python_style_checks.yml @@ -15,8 +15,10 @@ jobs: isort: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' - uses: jamescurtin/isort-action@master with: configuration: "--check-only" @@ -27,14 +29,16 @@ jobs: strategy: matrix: - python-version: [3.9] + python-version: ['3.10'] # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 # Set up a Python environment for use in actions - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} # Run black code formatter - uses: psf/black@stable @@ -47,12 +51,12 @@ jobs: strategy: matrix: - python-version: [3.9] + python-version: ['3.10'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -60,4 +64,4 @@ jobs: python -m pip install --upgrade pip pip install flake8 - name: Lint with flake8 - uses: py-actions/flake8@v1 + uses: py-actions/flake8@v2