add volunteer shapes #32
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: Validate All SHACL Shapes | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'shapes/**/*.ttl' | |
| workflow_dispatch: # allows manual triggering | |
| jobs: | |
| main-push-validation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Skip validation for Dependabot | |
| if: github.actor == 'dependabot[bot]' | |
| run: echo "Skipping SHACL validation for Dependabot PR" | |
| - name: Set up Python | |
| if: github.actor != 'dependabot[bot]' | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| if: github.actor != 'dependabot[bot]' | |
| run: pip install pyshacl rdflib rich | |
| - name: Validate all TTL files | |
| if: github.actor != 'dependabot[bot]' | |
| run: bash scripts/validate-shacl-shapes-dir.sh | |
| - name: Metadata & immutability checks | |
| if: github.actor != 'dependabot[bot]' | |
| run: python scripts/check-metadata-and-immutability-dir.py | |
| - name: Namespace & naming checks | |
| if: github.actor != 'dependabot[bot]' | |
| run: python scripts/check-namespaces-and-names-dir.py |