Skip to content
name: Check Multiple Workflows
on:
push:
branches: [master, cylc-8]
pull_request:
branches: [master, cylc-8]
workflow_dispatch:
jobs:
check_workflow:
name: Check ${{ matrix.workflow }}
runs-on: ubuntu-latest
strategy:
matrix:
workflow: [clock-trigger, crontab_replacement, data-retrieve-first, gui-demo, install-demo, strange-parameters]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
- name: Install dependencies
run: pip install cylc-flow
- name: Cylc Lint ${{ matrix.workflow }}
run: |
cylc lint --color=always ./"${{ matrix.workflow }}"
- name: Cylc validate ${{ matrix.workflow }}
run: |
if [[ -f ./${{ matrix.workflow }}/rose-suite.conf ]]; then
awk '$0 ~ "=" {print $0}' rose-suite.conf > cylc.conf
fi
cylc validate --color=always ./${{ matrix.workflow }} --set-file=cylc.conf