Skip to content

Commit

Permalink
Merge pull request openvinotoolkit#14 from mryzhov/sdl
Browse files Browse the repository at this point in the history
[CI] sdl tests
  • Loading branch information
mryzhov authored Feb 13, 2024
2 parents 4a332b4 + 8142d17 commit 8110243
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,6 @@ jobs:
python3 -m pip install $wheel_name[dev]
popd
- name: Tokenizers Bandit tests
run: |
bandit -c pyproject.toml -r python
working-directory: ${{ env.OPENVINO_TOKENIZERS_REPO }}

- name: Tokenizers regression tests
run: |
python3 -m pytest tokenizers_test.py
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ concurrency:

env:
PYTHON_VERSION: '3.11'
MACOSX_DEPLOYMENT_TARGET: '10.12'

jobs:
openvino_build:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/sdl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: OpenVINO tokenizers sdl tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- 'releases/**'

permissions:
actions: read
contents: read
security-events: write

concurrency:
# github.ref is not unique in post-commit
group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-linux-sdl
cancel-in-progress: true

env:
PYTHON_VERSION: '3.11'

jobs:
sdl_tests:
name: SDL tests
timeout-minutes: 5
defaults:
run:
shell: bash
runs-on: ubuntu-latest

steps:
- name: Clone Openvino tokenizers sources and tests
uses: actions/checkout@v4

- name: Setup Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

- name: Install Python tests dependencies
run: |
python3 -m pip install bandit
- name: Tokenizers Bandit tests
run: |
bandit -c pyproject.toml -r python
- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'

0 comments on commit 8110243

Please sign in to comment.