Refactor workflows and documentation: remove implementation summary, … #57
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: Lint and Test | |
| # This workflow runs linting and tests on PRs and pushes to main | |
| # It ensures code quality and prevents broken code from being merged | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: {} | |
| jobs: | |
| lint-yaml: | |
| name: Lint YAML Files | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install yamllint | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install yamllint | |
| - name: Run yamllint | |
| run: | | |
| echo "Running yamllint on workflow files..." | |
| yamllint -d '{extends: default, rules: {line-length: {max: 120}, comments: {min-spaces-from-content: 1}}}' .github/workflows/ || true | |
| continue-on-error: true | |
| - name: Validate action.yml | |
| run: | | |
| echo "Validating action.yml syntax..." | |
| python -c "import yaml; yaml.safe_load(open('action.yml'))" && echo "✓ action.yml is valid YAML" | |