From 8dd112795a009995d346da2e9e22dda3287fce43 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 12 Oct 2022 09:03:25 -0500 Subject: [PATCH] Test runs to update to node 16 --- .github/workflows/build-sphinx.yml | 8 +++--- .github/workflows/conda-package.yml | 44 ++++++++++++++--------------- .github/workflows/pre-commit.yml | 8 ++++-- 3 files changed, 31 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build-sphinx.yml b/.github/workflows/build-sphinx.yml index 16de6e2d480e..52623a587625 100644 --- a/.github/workflows/build-sphinx.yml +++ b/.github/workflows/build-sphinx.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.10.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} @@ -54,11 +54,11 @@ jobs: sudo apt-get install -y nvidia-cuda-toolkit clinfo - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v3.1.0 # https://github.com/marketplace/actions/setup-miniconda - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ env.python-ver }} @@ -106,7 +106,7 @@ jobs: if: | !github.event.pull_request.head.repo.fork && (github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')) - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v3.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: doc/_build/html/ diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index fb307a54031b..39867a86bb13 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -31,24 +31,24 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.10.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} - name: Checkout DPNP repo - uses: actions/checkout@v3 + uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - name: Checkout oneDPL - uses: actions/checkout@v3 + uses: actions/checkout@v3.1.0 with: repository: oneapi-src/oneDPL path: oneDPL ref: oneDPL-2021.7.0-release - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -63,7 +63,7 @@ jobs: run: conda install conda-build - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v3.0.11 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -80,7 +80,7 @@ jobs: DPLROOT: '${{ github.workspace }}/oneDPL' - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2 @@ -101,24 +101,24 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.10.0 + uses: styfle/cancel-workflow-action@0.11.0 with: access_token: ${{ github.token }} - name: Checkout DPNP repo - uses: actions/checkout@v3 + uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - name: Checkout oneDPL - uses: actions/checkout@v3 + uses: actions/checkout@v3.1.0 with: repository: oneapi-src/oneDPL path: oneDPL ref: oneDPL-2021.7.0-release - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -132,7 +132,7 @@ jobs: (echo CONDA_BLD=%CONDA_PREFIX%\conda-bld\win-64\) >> %GITHUB_ENV% - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v3.0.11 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -152,7 +152,7 @@ jobs: DPLROOT: '%GITHUB_WORKSPACE%\oneDPL' - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2 @@ -184,7 +184,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.pkg-path-in-channel }} @@ -195,7 +195,7 @@ jobs: tar -xvf ${{ env.pkg-path-in-channel }}/${{ env.PACKAGE_NAME }}-*.tar.bz2 -C ${{ env.extracted-pkg-path }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -227,7 +227,7 @@ jobs: TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}' - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v3.0.11 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -284,7 +284,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.pkg-path-in-channel }} @@ -304,7 +304,7 @@ jobs: dir ${{ env.extracted-pkg-path }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -350,7 +350,7 @@ jobs: run: more lockfile - name: Cache conda packages - uses: actions/cache@v3 + uses: actions/cache@v3.0.11 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -448,12 +448,12 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -486,12 +486,12 @@ jobs: python: ['3.8', '3.9'] steps: - name: Download artifact - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v2.1.1 with: auto-update-conda: true python-version: ${{ matrix.python }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 723347913ac3..56ce09e34765 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.0 + - uses: actions/checkout@v3.1.0 + - uses: actions/setup-python@v4.3.0 + with: + python-version: '3.10' + - uses: pre-commit/action@v3.0.0