diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 8a14d7f89e..dbbbb0e1b5 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -22,7 +22,7 @@ jobs: matrix: python: ['3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -30,7 +30,7 @@ jobs: run: | echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -60,12 +60,12 @@ jobs: $CHANNELS \ conda-recipe - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: /usr/share/miniconda/conda-bld/linux-64/${{ env.PACKAGE_NAME }}-*.tar.bz2 - name: Upload wheels artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }} path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl @@ -79,10 +79,10 @@ jobs: env: conda-bld: C:\Miniconda\conda-bld\win-64\ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: auto-activate-base: true conda-build-version: "*" @@ -90,7 +90,7 @@ jobs: python-version: ${{ matrix.python }} - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -109,12 +109,12 @@ jobs: OVERRIDE_INTEL_IPO: 1 # IPO requires more resources that GH actions VM provides run: conda build --no-test --python ${{ matrix.python }} -c intel -c conda-forge --override-channels conda-recipe - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.conda-bld }}${{ env.PACKAGE_NAME }}-*.tar.bz2 - name: Upload wheels artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }} path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl @@ -134,7 +134,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path @@ -161,7 +161,7 @@ jobs: run: | echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -219,10 +219,10 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true conda-build-version: '*' @@ -262,7 +262,7 @@ jobs: shell: pwsh run: Get-Content -Path .\lockfile - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -326,12 +326,12 @@ jobs: python: ['3.9', '3.10', '3.11'] steps: - name: Download conda artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Download wheel artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }} @@ -362,16 +362,16 @@ jobs: python: ['3.9', '3.10', '3.11'] steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Download wheel artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }} - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: auto-activate-base: true activate-environment: "" @@ -411,11 +411,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@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path @@ -437,7 +437,7 @@ jobs: run: | echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -554,12 +554,12 @@ jobs: CHANNELS: -c intel -c conda-forge --override-channels steps: - name: Checkout dpctl repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Cache array API tests id: cache-array-api-tests - uses: actions/cache@v3 + uses: actions/cache@v4 env: ARRAY_CACHE: 3 with: @@ -578,7 +578,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@v3 + uses: actions/download-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Add conda to system path @@ -605,7 +605,7 @@ jobs: run: | echo "pkgs_dirs: [~/.conda/pkgs]" >> ~/.condarc - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v4 env: CACHE_NUMBER: 3 # Increase to reset cache with: @@ -672,7 +672,7 @@ jobs: run: echo "::notice ${{ env.MESSAGE }}" - name: Post result to PR if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork }} - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@v2 with: message: | ${{ env.MESSAGE }} @@ -688,7 +688,7 @@ jobs: run: shell: bash -el {0} steps: - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3 with: run-post: false channel-priority: "disabled" @@ -699,7 +699,7 @@ jobs: run: conda install anaconda-client - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: IntelPython/devops-tools fetch-depth: 0 diff --git a/.github/workflows/cpp_style_checks.yml b/.github/workflows/cpp_style_checks.yml index f293788fe0..facf85651b 100644 --- a/.github/workflows/cpp_style_checks.yml +++ b/.github/workflows/cpp_style_checks.yml @@ -16,14 +16,14 @@ jobs: name: clang-format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run clang-format style check for C/C++ programs. - uses: jidicula/clang-format-action@v3.5.1 + uses: jidicula/clang-format-action@v4.11.0 with: clang-format-version: '11' check-path: 'libsyclinterface' - name: Run clang-format style check for api headers. - uses: jidicula/clang-format-action@v3.5.1 + uses: jidicula/clang-format-action@v4.11.0 with: clang-format-version: '11' check-path: 'dpctl/apis' diff --git a/.github/workflows/generate-coverage.yaml b/.github/workflows/generate-coverage.yaml index d57a6794fa..7ec430331f 100644 --- a/.github/workflows/generate-coverage.yaml +++ b/.github/workflows/generate-coverage.yaml @@ -9,7 +9,7 @@ permissions: read-all jobs: generate-coverage: name: Generate coverage and push to Coveralls.io - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: pull-requests: write @@ -21,7 +21,7 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} @@ -50,14 +50,14 @@ jobs: sudo apt-get install ninja-build - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' architecture: x64 - name: Cache Gtest id: cache-gtest - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | /home/runner/work/googletest-1.13.0/install @@ -81,7 +81,7 @@ jobs: make && make install - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 8d3f9e0f67..1faa18713c 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -11,13 +11,13 @@ permissions: read-all jobs: build-and-deploy: name: Build and Deploy Documentation - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} - name: Add Intel repository @@ -46,7 +46,7 @@ jobs: sudo apt-get install ninja-build - name: Setup Python if: ${{ !github.event.pull_request || github.event.action != 'closed' }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' architecture: x64 @@ -56,7 +56,7 @@ jobs: run: | pip install numpy cython setuptools scikit-build cmake sphinx"<7.2" sphinx_rtd_theme pydot graphviz sphinxcontrib-programoutput sphinxcontrib-googleanalytics - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false @@ -98,7 +98,7 @@ jobs: git push tokened_docs gh-pages - name: Save built docs as an artifact if: ${{ github.event.pull_request && github.event.pull_request.head.repo.fork && github.event.action != 'closed'}} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.PACKAGE_NAME }} rendered documentation path: ~/docs @@ -143,7 +143,7 @@ jobs: if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action != 'closed' }} env: PR_NUM: ${{ github.event.number }} - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@v2 with: message: | View rendered docs @ https://intelpython.github.io/dpctl/pulls/${{ env.PR_NUM }}/index.html @@ -153,7 +153,7 @@ jobs: if: ${{ github.event.pull_request && !github.event.pull_request.head.repo.fork && github.event.action == 'closed' }} env: PR_NUM: ${{ github.event.number }} - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@v2 with: message: | Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. :crossed_fingers: diff --git a/.github/workflows/os-llvm-sycl-build.yml b/.github/workflows/os-llvm-sycl-build.yml index dbabc79aff..78e825c9bf 100644 --- a/.github/workflows/os-llvm-sycl-build.yml +++ b/.github/workflows/os-llvm-sycl-build.yml @@ -22,13 +22,13 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.1 with: access_token: ${{ github.token }} - name: Cache sycl bundle id: cache-sycl-bundle - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | /home/runner/work/sycl_bundle @@ -102,7 +102,7 @@ jobs: sudo apt-get install libtinfo5 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' architecture: x64 @@ -113,7 +113,7 @@ jobs: pip install numpy"<1.26.0" cython setuptools pytest scikit-build cmake ninja - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 1461985e90..c9925da2df 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,8 +11,8 @@ jobs: pre-commit: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: Version of clang-format diff --git a/.github/workflows/python_style_checks.yml b/.github/workflows/python_style_checks.yml index 6b0bbca5e1..9059e90aec 100644 --- a/.github/workflows/python_style_checks.yml +++ b/.github/workflows/python_style_checks.yml @@ -17,10 +17,10 @@ jobs: isort: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - uses: jamescurtin/isort-action@master with: configuration: "--check-only" @@ -32,11 +32,11 @@ jobs: # 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@v3 + - uses: actions/checkout@v4 # Set up a Python environment for use in actions - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' # Run black code formatter - uses: psf/black@stable @@ -49,11 +49,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip