update kf with fix for bundle in naja #2633
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: ORFS variables.yaml tester and linter | |
| on: | |
| pull_request: | |
| jobs: | |
| docs-test-job: | |
| name: 'Tests for variables.yaml' | |
| if: github.event_name == 'pull_request' || github.event_name == 'push' | |
| runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| flow/scripts/generate-variables-docs.py | |
| flow/scripts/yaml_to_json.py | |
| flow/scripts/variables.yaml | |
| flow/scripts/variables.json | |
| docs/user/FlowVariables.md | |
| yamlfix.toml | |
| - name: Install dependencies | |
| run: | | |
| python3 -m venv venv | |
| venv/bin/pip install --quiet pyyaml yamlfix==1.19.1 | |
| - name: Run generate-variables-docs.py | |
| run: | | |
| venv/bin/python3 flow/scripts/generate-variables-docs.py | |
| - name: Check if FlowVariables.md is up to date | |
| run: | | |
| git diff --exit-code docs/user/FlowVariables.md | |
| - name: Check variables.json is up to date | |
| run: | | |
| venv/bin/python3 flow/scripts/yaml_to_json.py | |
| git diff --exit-code flow/scripts/variables.json | |
| - name: Run yamlfix check | |
| run: | | |
| source venv/bin/activate | |
| yamlfix --version | |
| set -x | |
| yamlfix -c yamlfix.toml flow/scripts/variables.yaml | |
| git diff --exit-code flow/scripts/variables.yaml |