Skip to content

Commit

Permalink
Fixed MO working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Dec 31, 2022
1 parent 35213da commit 8651cec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 35 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,3 @@ jobs:
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 }}
23 changes: 10 additions & 13 deletions .github/workflows/mo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: MO
on:
push:
paths:
- 'openvino/tools/mo/**'
- 'tools/mo/**'
- '.github/workflows/mo.yml'
branches:
- 'master'
- 'releases/**'
pull_request:
paths:
- 'openvino/tools/mo/**'
- 'tools/mo/**'
- '.github/workflows/mo.yml'

concurrency:
Expand All @@ -24,16 +24,16 @@ jobs:
with:
submodules: recursive

- name: Setup Python ${{ matrix.python-version }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.10

- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('openvino/tools/mo/requirements*.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('tools/mo/requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
Expand All @@ -49,17 +49,14 @@ jobs:
# MO requirements
pip install -r requirements.txt
pip install -r requirements_dev.txt
# requrements for CMake
sudo apt update
sudo apt --assume-yes install libusb-1.0-0-dev
working-directory: openvino/tools/mo
working-directory: tools/mo

- name: Pylint
run: pylint -d C,R,W openvino/tools/mo/ openvino/tools/mo/mo.py
working-directory: openvino/tools/mo
run: pylint -d C,R,W openvino/tools/mo
working-directory: tools/mo

- name: CMake configure
run: cmake -B build
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -B build

- name: UT
run: |
Expand All @@ -68,4 +65,4 @@ jobs:
env
mkdir ../mo-ut-logs
python3 -m xmlrunner discover -p *_test.py --output=../mo-ut-logs
working-directory: openvino/tools/mo
working-directory: tools/mo

0 comments on commit 8651cec

Please sign in to comment.