Files
QuantEngineByItz/.gitea/workflows/ci_lint.yml
T
kjh2064 3c42eb402b
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 21s
Validators (Pushes and Pull Requests) / validate-core (push) Failing after 1m46s
fix(ci): make workflow lint runner-managed
2026-07-12 22:52:52 +09:00

39 lines
1.1 KiB
YAML

name: CI Workflow Lint
on:
pull_request:
branches: [ main ]
paths:
- ".gitea/workflows/ci.yml"
- "tools/validate_gitea_ci_workflow_lint_v1.py"
push:
branches: [ main ]
paths:
- ".gitea/workflows/ci.yml"
- "tools/validate_gitea_ci_workflow_lint_v1.py"
workflow_dispatch:
jobs:
validate-ci-workflow-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python Environment
run: |
/usr/bin/python3 --version
/usr/bin/python3 -m pip --version
PYTHON_DEPS="$HOME/python_deps/$(md5sum tools/validate_gitea_ci_workflow_lint_v1.py | cut -d' ' -f1)"
mkdir -p "$PYTHON_DEPS"
/usr/bin/python3 -m pip install --disable-pip-version-check --quiet \
--target "$PYTHON_DEPS" pyyaml
export PYTHONPATH="$PYTHON_DEPS:${PYTHONPATH:-}"
echo "PYTHONPATH=$PYTHON_DEPS:${PYTHONPATH:-}" >> "$GITHUB_ENV"
- name: Lint CI Workflow Contract
run: python3 tools/validate_gitea_ci_workflow_lint_v1.py --workflow .gitea/workflows/ci.yml