Harden autopilot-core portfolio docs #4
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate workflow YAML | |
| run: | | |
| python -c " | |
| import yaml, glob, sys | |
| files = glob.glob('.github/workflows/*.yml') | |
| errors = [] | |
| for f in files: | |
| try: | |
| with open(f) as fh: | |
| yaml.safe_load(fh) | |
| print(' OK:', f) | |
| except yaml.YAMLError as e: | |
| # GitHub Actions parses some heredoc patterns that Python | |
| # yaml.safe_load rejects (heredoc terminators at column 0 | |
| # inside block scalars). Warn but do not fail. | |
| print(' WARN:', f, '-', str(e).split('\n')[0]) | |
| print('Validated', len(files), 'workflow files') | |
| " |