Skip to content

Commit

Permalink
add defaults to action
Browse files Browse the repository at this point in the history
  • Loading branch information
FoSix committed Oct 18, 2023
1 parent 28e9221 commit b8fa407
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/sca/action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
3 changes: 3 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
permissions:
contents: read

concurrency:
group: '${{ github.event.number }}'

jobs:

pyversion:
Expand Down

0 comments on commit b8fa407

Please sign in to comment.