Fix CONTRIBUTING.md footer: LOCKFILE_VERSION 1.0.0 → 1.0.3 #22
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package and dev deps | |
| run: pip install -e ".[dev]" | |
| - name: Lint | |
| run: | | |
| pip install ruff | |
| ruff check src/ tests/ | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| - name: Verify SHA256SUMS | |
| run: | | |
| python3 -c " | |
| import hashlib, pathlib, sys | |
| fails = 0 | |
| for line in open('SHA256SUMS.txt').read().splitlines(): | |
| if not line.strip() or line.startswith('#'): | |
| continue | |
| sha, fp = line.split(' ', 1) | |
| try: | |
| actual = hashlib.sha256(pathlib.Path(fp).read_bytes()).hexdigest() | |
| if actual != sha: | |
| print(f'MISMATCH: {fp}') | |
| fails += 1 | |
| except FileNotFoundError: | |
| print(f'MISSING: {fp}') | |
| fails += 1 | |
| print(f'SHA256SUMS: {fails} failures') | |
| sys.exit(1 if fails else 0) | |
| " | |
| - name: AIEP canon self-test | |
| run: aiep-verify --self-test | |
| - name: Run conformance test vectors | |
| run: aiep-verify --vectors vectors/v1.0.0/ |