Skip to content

Commit

Permalink
Configured dependabot updates for main pip requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Dec 30, 2022
1 parent b26fcfb commit 35213da
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 30 deletions.
79 changes: 69 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -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 }}
17 changes: 0 additions & 17 deletions .github/workflows/dependency_review.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/mo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 35213da

Please sign in to comment.