From 35213dae06fb8147a3e1d9429c61c603512fb511 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 30 Dec 2022 17:54:27 +0400 Subject: [PATCH] Configured dependabot updates for main pip requirements --- .github/dependabot.yml | 79 +++++++++++++++++++++---- .github/workflows/build_doc.yml | 2 +- .github/workflows/dependencies.yml | 38 ++++++++++++ .github/workflows/dependency_review.yml | 17 ------ .github/workflows/mo.yml | 4 +- 5 files changed, 110 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/dependencies.yml delete mode 100644 .github/workflows/dependency_review.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ef8e05d117e581..1f0954411980a9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,16 +2,75 @@ version: 2 updates: - # Enable version updates for Python API + # Python API requirements - package-ecosystem: pip - directory: "/src/bindings/python" + directory: "/src/bindings/python/" schedule: - interval: weekly - day: sunday - time: "13:00" - open-pull-requests-limit: 0 - reviewers: - - jiwaszki - - akuporos + interval: "daily" + time: "09:00" + timezone: "Poland" + open-pull-requests-limit: 3 + assignees: + - "jiwaszki" + - "p-wysocki" labels: - - "category: dependencies" + - "category: dependency_changes" + versioning-strategy: increase-if-necessary + + # Model Optimizer requirements + - package-ecosystem: pip + directory: "/tools/mo" + schedule: + interval: "daily" + time: "09:00" + timezone: "Asia/Dubai" + open-pull-requests-limit: 3 + assignees: + - "rkazants" + - "andrei-kochin" + - "jiwaszki" + - "p-wysocki" + allow: + - dependency-name: "*" + dependency-type: "production" + labels: + - "category: dependency_changes" + versioning-strategy: increase-if-necessary + + # POT requirements + - package-ecosystem: pip + directory: "/tools/pot" + schedule: + interval: "daily" + time: "09:00" + timezone: "Asia/Dubai" + open-pull-requests-limit: 3 + assignees: + - "AlexKoff88" + - "KodiaqQ" + - "jiwaszki" + - "p-wysocki" + labels: + - "category: dependency_changes" + versioning-strategy: increase-if-necessary + + # PaddlePaddle tests requirements + - package-ecosystem: pip + directory: "/src/frontends/paddle/tests/" + schedule: + interval: "daily" + time: "17:40" + timezone: "Asia/Shanghai" + open-pull-requests-limit: 3 + labels: + - "category: dependency_changes" + versioning-strategy: increase-if-necessary + + # Github actions + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: "daily" + time: "09:00" + timezone: "Asia/Dubai" + open-pull-requests-limit: 3 diff --git a/.github/workflows/build_doc.yml b/.github/workflows/build_doc.yml index 72b2a4e7b984d5..8cc01230d55071 100644 --- a/.github/workflows/build_doc.yml +++ b/.github/workflows/build_doc.yml @@ -25,7 +25,7 @@ jobs: lfs: true - name: Install apt-get dependencies - uses: awalsh128/cache-apt-pkgs-action@v1.1.3 + uses: awalsh128/cache-apt-pkgs-action@v1 with: packages: graphviz texlive liblua5.2-0 libclang1-9 libclang-cpp9 version: 3.0 diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 00000000000000..13310fc3563b99 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,38 @@ +name: 'Dependencies' +on: [pull_request] + +jobs: + Review: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Clone OpenVINO + uses: actions/checkout@v3 + + - name: Dependency Review + uses: actions/dependency-review-action@v3 + with: + config-file: './.github/dependency_review.yml' + + Dependabot_Approve: + runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Dependabot metadata + id: dependabot-metadata + uses: dependabot/fetch-metadata@v1 + with: + github-token: "${{ secrets.GITHUB_TOKEN }}" + + - name: Approve a PR for auto-merge + if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor' }} + run: | + gh pr review --approve "$PR_URL" + gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml deleted file mode 100644 index 8e93de51b5c767..00000000000000 --- a/.github/workflows/dependency_review.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Dependency Review' -on: [pull_request] - -permissions: - contents: read - -jobs: - dependency-review: - runs-on: ubuntu-latest - steps: - - name: Clone OpenVINO - uses: actions/checkout@v3 - - - name: Dependency Review - uses: actions/dependency-review-action@v3 - with: - config-file: './.github/dependency_review.yml' diff --git a/.github/workflows/mo.yml b/.github/workflows/mo.yml index 330a4e63573635..e32acd0d346958 100644 --- a/.github/workflows/mo.yml +++ b/.github/workflows/mo.yml @@ -3,14 +3,14 @@ on: push: paths: - 'openvino/tools/mo/**' - - '.github/workflows/mo.py' + - '.github/workflows/mo.yml' branches: - 'master' - 'releases/**' pull_request: paths: - 'openvino/tools/mo/**' - - '.github/workflows/mo.py' + - '.github/workflows/mo.yml' concurrency: group: ${{ github.workflow }}-${{ github.ref }}