aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/python.yml
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2024-08-15 14:47:35 +0100
committerGitHub <noreply@github.com>2024-08-15 14:47:35 +0100
commit8e7e9d74aa577cf4f0f7278232b6d6b7c051e58d (patch)
treec3117a49ac47505dc8c2aea3a1fd634571cf4f6f /.github/workflows/python.yml
parent6a494184799b54e22c35880aba4231e4d92bab62 (diff)
parent539dffb1b69bdad7981d89e390196d3ec4ef4e00 (diff)
downloadde-project-bentley-8e7e9d74aa577cf4f0f7278232b6d6b7c051e58d.tar.gz
de-project-bentley-8e7e9d74aa577cf4f0f7278232b6d6b7c051e58d.zip
Merge pull request #35 from ajschofield/feature/ci-tests
pr: update github actions workflow
Diffstat (limited to '.github/workflows/python.yml')
-rw-r--r--.github/workflows/python.yml50
1 files changed, 0 insertions, 50 deletions
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
deleted file mode 100644
index 7d5b5b1..0000000
--- a/.github/workflows/python.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-name: python-quality-checks
-
-on:
- push:
- branches: [development]
- pull_request:
- branches: [development, staging]
-
-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
- - name : Setup
- uses : actions/setup-python@v2
- with:
- python-version: 3.11
- - name : Dependencies
- run: |
- python -m pip install --upgrade pip
- pip install flake8 pylint black bandit safety
- - name : Linting
- run: |
- flake8 .
- find . -name "*.py" | xargs pylint
- - name : Formatting
- run: |
- black --check .
- - name: Security
- run: |
- bandit -r .
- safety check
- \ No newline at end of file
git.ajschof.me — hosted by ajschofield — powered by cgit