diff options
| author | Alex <git@ajschof.me> | 2024-08-15 19:50:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 19:50:09 +0100 |
| commit | 83a05489bd5ec56f51ede83f52f8babcaa7eef70 (patch) | |
| tree | a690741aac60485522a578b655e7b32418172f44 /.github/workflows/python.yml | |
| parent | cf23d5d0a217ba91b50aebc0261ae6fa064bfcd4 (diff) | |
| parent | fc8e61c0e58df57195c6a33852a0a17ba34322c6 (diff) | |
| download | de-project-bentley-83a05489bd5ec56f51ede83f52f8babcaa7eef70.tar.gz de-project-bentley-83a05489bd5ec56f51ede83f52f8babcaa7eef70.zip | |
Merge pull request #41 from ajschofield/feature/ci-tests
pr: github action update
Diffstat (limited to '.github/workflows/python.yml')
| -rw-r--r-- | .github/workflows/python.yml | 50 |
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 |
