Skip to content

Add CONTRIBUTING.md for project guidelines #61

Add CONTRIBUTING.md for project guidelines

Add CONTRIBUTING.md for project guidelines #61

Workflow file for this run

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'
continue-on-error: false
- name: Install yamllint
run: |
python -m pip install --upgrade pip
pip install yamllint
continue-on-error: false
- 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: false
- 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"
continue-on-error: false