From b8fa407a6e8c6d7128ab12cb19aea38ea22808b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pawl=C4=99ga?= Date: Wed, 18 Oct 2023 13:59:25 +0200 Subject: [PATCH] add defaults to action --- .github/actions/sca/action.yml | 8 ++++++-- .github/workflows/pr.yml | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/actions/sca/action.yml b/.github/actions/sca/action.yml index 788f9fe..1d4651a 100644 --- a/.github/actions/sca/action.yml +++ b/.github/actions/sca/action.yml @@ -1,5 +1,5 @@ -name: Discover minimum Python version -description: Discover the lowest supported Python version based on pyptoject.toml file +name: Run SCA tests +description: 'Runs all SCA tests: lint, format and security.' inputs: python_version: @@ -19,15 +19,19 @@ runs: uses: Gr1N/setup-poetry@v8 - name: create Poetry venv + shell: bash run: | poetry env use ${{ inputs.python_version }} poetry install - name: run flake + shell: bash run: poetry run make lint - name: run black + shell: bash run: poetry run make format_check - name: run bandit + shell: bash run: poetry run make security \ No newline at end of file diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index af0f637..10ca5e3 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,6 +14,9 @@ on: permissions: contents: read +concurrency: + group: '${{ github.event.number }}' + jobs: pyversion: