Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VSCode Extension] Add missing files & Configure CI #748

Merged
merged 10 commits into from
Oct 16, 2023
2 changes: 2 additions & 0 deletions .ci/azure/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trigger:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

pr:
branches:
Expand All @@ -15,6 +16,7 @@ pr:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

resources:
repositories:
Expand Down
4 changes: 4 additions & 0 deletions .ci/azure/linux_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ trigger:
include:
- modules/nvidia_plugin
- .ci/azure/linux_cuda.yml
exclude:
- modules/openvino_code

pr:
branches:
Expand All @@ -16,6 +18,8 @@ pr:
paths:
include:
- modules/nvidia_plugin
exclude:
- modules/openvino_code

resources:
repositories:
Expand Down
2 changes: 2 additions & 0 deletions .ci/azure/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trigger:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

pr:
branches:
Expand All @@ -15,6 +16,7 @@ pr:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

resources:
repositories:
Expand Down
2 changes: 2 additions & 0 deletions .ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ trigger:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

pr:
branches:
Expand All @@ -15,6 +16,7 @@ pr:
paths:
exclude:
- modules/nvidia_plugin
- modules/openvino_code

resources:
repositories:
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/openvino_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: OpenVINO Code Extension Workflow

on:
pull_request:
types: [opened, synchronize]
paths:
- 'modules/openvino_code/**'
- '.github/workflows/openvino_code.yml'

concurrency:
group: ${{ github.head_ref || github.ref_name }}
yatarkan marked this conversation as resolved.
Show resolved Hide resolved
cancel-in-progress: true

defaults:
run:
working-directory: ./modules/openvino_code

jobs:
check_extension:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
yatarkan marked this conversation as resolved.
Show resolved Hide resolved
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
ilya-lavrenov marked this conversation as resolved.
Show resolved Hide resolved

- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
cache-dependency-path: modules/openvino_code/package-lock.json

- name: Install dependencies
run: npm ci

- name: Run Lint
run: npm run lint:all

check_server:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
yatarkan marked this conversation as resolved.
Show resolved Hide resolved
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
yatarkan marked this conversation as resolved.
Show resolved Hide resolved
pip install ruff black

- name: Lint with ruff and Black
run: |
cd server
ruff check .
black --check .
10 changes: 8 additions & 2 deletions .github/workflows/token_merging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Token Merging - Test

on:
push:
branches: [ master ]
branches:
- master
paths:
- 'modules/token_merging/**'
pull_request:
branches: [ master ]
branches:
- master
paths:
- 'modules/token_merging/**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down
2 changes: 2 additions & 0 deletions modules/openvino_code/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ venv
/server/OVCodExtServer.egg-info/
/server/src/OVCodExtServer.egg-info/
/server/.ruff_cache/

!media/*.png
Binary file added modules/openvino_code/media/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added modules/openvino_code/media/sidebar-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading