aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/on-commit.yml
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2024-08-15 15:09:07 +0100
committerGitHub <noreply@github.com>2024-08-15 15:09:07 +0100
commitccf79ea359087361a07d3ab332eccdcfde1bc36f (patch)
treecfb208e1346e99752742d6c8381e4beb11f6db3b /.github/workflows/on-commit.yml
parent8e7e9d74aa577cf4f0f7278232b6d6b7c051e58d (diff)
parent501e450e23b6ecd09029b5c1dae1e24373807bb6 (diff)
downloadde-project-bentley-ccf79ea359087361a07d3ab332eccdcfde1bc36f.tar.gz
de-project-bentley-ccf79ea359087361a07d3ab332eccdcfde1bc36f.zip
Merge pull request #36 from ajschofield/feature/ci-tests
pr: update on-commit.yml
Diffstat (limited to '.github/workflows/on-commit.yml')
-rw-r--r--.github/workflows/on-commit.yml18
1 files changed, 1 insertions, 17 deletions
diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml
index e429651..5f3aebf 100644
--- a/.github/workflows/on-commit.yml
+++ b/.github/workflows/on-commit.yml
@@ -6,23 +6,7 @@ on:
- 'main'
jobs:
- check-if-py-files-exist:
- runs-on: ubuntu-latest
- outputs:
- py_files_exist: ${{ steps.check.outputs.py_files_exist }}
- steps:
- - uses: actions/checkout@v2
- - id: check_files
- run: |
- if [ -n "$(find . -name '*.py')" ]; then
- echo "::set-output name=py_files_exist::true"
- else
- echo "::set-output name=py_files_exist::false"
- fi
-
quality-checks:
- needs: check-if-py-files-exist
- if: ${{ needs.check-if-py-files-exist.outputs.py_files_exist == 'true' }}
runs-on: ubuntu-latest
steps:
- uses : actions/checkout@v2
@@ -43,7 +27,7 @@ jobs:
black --check .
- name: 'Python: Security'
run: |
- bandit -r .
+ bandit -lll */*.py *c/*.py
safety check
- name: 'Terraform: Setup'
uses: hashicorp/setup-terraform@v3
git.ajschof.me — hosted by ajschofield — powered by cgit