Testing workflows for Development

This commit is contained in:
florianuhlig
2025-10-05 02:54:19 +02:00
parent 548d88fb29
commit ee1eea2eac

View File

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