Skip to content

chore(deps): bump peter-evans/create-or-update-comment from 4.0.0 to 5.0.0 #230

chore(deps): bump peter-evans/create-or-update-comment from 4.0.0 to 5.0.0

chore(deps): bump peter-evans/create-or-update-comment from 4.0.0 to 5.0.0 #230

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
cache: 'pip'
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check src/ tests/
- name: Format check
run: ruff format --check src/ tests/
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
cache: 'pip'
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Type check with mypy
run: mypy src/ai_bom/ --ignore-missing-imports
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests with coverage
run: pytest -v --cov=ai_bom --cov-report=term-missing --cov-report=xml
- name: Check coverage threshold
if: matrix.python-version == '3.12'
run: |
coverage report --fail-under=80
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
files: coverage.xml
flags: ai-bom
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
cache: 'pip'
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run pip-audit
run: pip-audit --strict --desc --local
- name: Run AI-BOM self-scan (SARIF)
run: |
ai-bom scan . --format sarif -o ai-bom-results.sarif --quiet || true
- name: Upload SARIF results
if: github.event_name == 'push'
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
with:
sarif_file: ai-bom-results.sarif
continue-on-error: true