Skip to content

add a generic workflow checking workflow #2

add a generic workflow checking workflow

add a generic workflow checking workflow #2

name: Cylc Checks
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

View workflow run for this annotation

GitHub Actions / Cylc Checks

Invalid workflow file

The workflow is not valid. .github/workflows/generic-cylc-checks.yml (Line: 27, Col: 5): Unexpected value 'requires' .github/workflows/generic-cylc-checks.yml (Line: 27, Col: 5): Required property is missing: runs-on
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 }}