From 5dbee258b81960fcd1deaf75f11d0a0018299006 Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Thu, 8 Feb 2024 17:21:24 +0100 Subject: [PATCH] sdl tests --- .github/workflows/sdl.yml | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/sdl.yml diff --git a/.github/workflows/sdl.yml b/.github/workflows/sdl.yml new file mode 100644 index 000000000..bf32258d7 --- /dev/null +++ b/.github/workflows/sdl.yml @@ -0,0 +1,50 @@ +name: SDL checks +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + - 'releases/**' + +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: OpenVINO tokenizers sdl tests + timeout-minutes: 5 + defaults: + run: + shell: bash + runs-on: ubuntu-latest + + env: + OPENVINO_TOKENIZERS_REPO: ${{ github.workspace }}/openvino_tokenizers + + steps: + - name: Clone Openvino tokenizers sources and tests + uses: actions/checkout@v4 + with: + path: ${{ env.OPENVINO_TOKENIZERS_REPO }} + + - 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 + working-directory: ${{ env.OPENVINO_TOKENIZERS_REPO }} +