Skip to content

Check for syntax errors #1863

Check for syntax errors

Check for syntax errors #1863

# This workflow handles checking for syntax errors
# Only .py files are covered
name: Check for syntax errors
on:
# Trigger workflow when code formatting has been checked
workflow_run:
workflows: [Check code formatting quality]
types: [completed]
jobs:
check-for-syntax-errors:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: cclauss/Find-Python-syntax-errors-action@master
# Handle case where triggering workflow failed
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'