-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from mryzhov/sdl
[CI] sdl tests
- Loading branch information
Showing
3 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ concurrency: | |
|
||
env: | ||
PYTHON_VERSION: '3.11' | ||
MACOSX_DEPLOYMENT_TARGET: '10.12' | ||
|
||
jobs: | ||
openvino_build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '.' | ||
|