Files
ChatBot/.github/workflows/linters.yml
Workflow config file is invalid. Please check your config file: yaml: line 3: did not find expected key
florianuhlig d0f0ac35eb a
2025-10-05 02:42:26 +02:00

41 lines
869 B
YAML

name: linters
on:
workflow_run:
workflows: ["Code Review"]
types: ["completed"] #requested
jobs:
on-success:
runs-on: ubuntu-latest
steps:
# 1. Check out code
- name: Checkout repository
uses: actions/checkout@v3
# 2. Set up Python
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
# 3. Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pylint
# 4. Run linters
- name: Run flake8
run: flake8
- name: Run pylint
run: pylint frontend services utils
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'