From 603b434572701a74cd95dc5366a95f6e6d560a87 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 24 Jan 2024 18:13:12 +0100 Subject: [PATCH] Update versions of used GitHub actions to the latest --- .github/workflows/build-sphinx.yml | 10 ++++---- .github/workflows/conda-package.yml | 30 ++++++++++++------------ .github/workflows/generate_coverage.yaml | 6 ++--- .github/workflows/pre-commit.yml | 4 ++-- .pre-commit-config.yaml | 12 +++++----- 5 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build-sphinx.yml b/.github/workflows/build-sphinx.yml index f814fabd9fd5..84ba0812f6c4 100644 --- a/.github/workflows/build-sphinx.yml +++ b/.github/workflows/build-sphinx.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.0 with: access_token: ${{ github.token }} @@ -42,7 +42,7 @@ jobs: echo "$GITHUB_CONTEXT" - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main + uses: jlumbroso/free-disk-space@v1.3.1 with: docker-images: false @@ -76,13 +76,13 @@ jobs: sudo apt-get install -y nvidia-cuda-toolkit clinfo - name: Checkout repo - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 # https://github.com/marketplace/actions/setup-miniconda - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ env.python-ver }} @@ -184,7 +184,7 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3.5.2 + - uses: actions/checkout@v4.1.1 with: fetch-depth: 0 diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index e50804468d84..32f62306ae52 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -68,17 +68,17 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.0 with: access_token: ${{ github.token }} - name: Checkout DPNP repo - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -99,7 +99,7 @@ jobs: run: conda install conda-build - name: Cache conda packages - uses: actions/cache@v3.3.0 + uses: actions/cache@v4 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -114,7 +114,7 @@ jobs: run: conda build --no-test --python ${{ matrix.python }} ${{ env.CHANNELS }} conda-recipe - name: Upload artifact - uses: actions/upload-artifact@v3.1.2 + uses: actions/upload-artifact@v4.3.0 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2 @@ -147,7 +147,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3.0.2 + uses: actions/download-artifact@v4.1.1 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.pkg-path-in-channel }} @@ -158,7 +158,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.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -190,7 +190,7 @@ jobs: TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}' - name: Cache conda packages - uses: actions/cache@v3.3.0 + uses: actions/cache@v4 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -248,7 +248,7 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3.0.2 + uses: actions/download-artifact@v4.1.1 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} path: ${{ env.pkg-path-in-channel }} @@ -268,7 +268,7 @@ jobs: dir ${{ env.extracted-pkg-path }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -314,7 +314,7 @@ jobs: run: more lockfile - name: Cache conda packages - uses: actions/cache@v3.3.0 + uses: actions/cache@v4 env: CACHE_NUMBER: 1 # Increase to reset cache with: @@ -382,12 +382,12 @@ jobs: steps: - name: Download artifact - uses: actions/download-artifact@v3.0.2 + uses: actions/download-artifact@v4.1.1 with: name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }} - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ matrix.python }} @@ -410,7 +410,7 @@ jobs: run: shell: bash -el {0} steps: - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v3.0.1 with: run-post: false channel-priority: "disabled" @@ -421,7 +421,7 @@ jobs: run: conda install anaconda-client - name: Checkout repo - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.1 with: repository: IntelPython/devops-tools fetch-depth: 0 diff --git a/.github/workflows/generate_coverage.yaml b/.github/workflows/generate_coverage.yaml index 1c6d22644221..e7479d445ea5 100644 --- a/.github/workflows/generate_coverage.yaml +++ b/.github/workflows/generate_coverage.yaml @@ -19,17 +19,17 @@ jobs: steps: - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.11.0 + uses: styfle/cancel-workflow-action@0.12.0 with: access_token: ${{ github.token }} - name: Checkout repo - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4.1.1 with: fetch-depth: 0 - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v2.2.0 + uses: conda-incubator/setup-miniconda@v3.0.1 with: auto-update-conda: true python-version: ${{ env.python-ver }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 18668bf10c45..dd5047f22b1e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -16,8 +16,8 @@ jobs: sudo ln -s /usr/bin/clang-format-12 /usr/bin/clang-format clang-format --version - - uses: actions/checkout@v3.5.2 - - uses: actions/setup-python@v4.6.1 + - uses: actions/checkout@v4.1.1 + - uses: actions/setup-python@v5 with: python-version: '3.11' - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8823fa74210..b3787c3833c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,13 +2,13 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/PyCQA/bandit - rev: '1.7.5' + rev: '1.7.7' hooks: - id: bandit pass_filenames: false args: ["-r", "dpnp", "-lll"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-ast - id: check-builtin-literals @@ -43,12 +43,12 @@ repos: - id: rst-inline-touching-normal - id: text-unicode-replacement-char - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.12.1 hooks: - id: black args: ["--check", "--diff", "--color"] - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort (python) @@ -59,13 +59,13 @@ repos: name: isort (pyi) types: [pyi] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 args: ["--config=.flake8"] additional_dependencies: - flake8-docstrings==1.7.0 - - flake8-bugbear==23.6.5 + - flake8-bugbear==24.1.17 - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: