add a generic workflow checking workflow #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Multiple Workflows | ||
on: | ||
push: | ||
branches: [master, cylc-8] | ||
pull_request: | ||
branches: [master, cylc-8] | ||
workflow_dispatch: | ||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install cylc-flow | ||
lint: | ||
requires: setup | ||
Check failure on line 27 in .github/workflows/generic-cylc-checks.yml
|
||
strategy: | ||
matrix: | ||
workflow: [simplest, crontab_replacement] | ||
steps: | ||
- name: Cylc Lint ${{ matrix.workflow }} | ||
run: | | ||
cylc lint --color=always ./"${{ matrix.workflow }}" | ||
validate: | ||
requires: setup | ||
strategy: | ||
matrix: | ||
workflow: [simplest, crontab_replacement] | ||
steps: | ||
- name: Cylc validate ${{ matrix.workflow }} | ||
run: | | ||
cylc validate --color=always ./${{ matrix.workflow }} |