Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci-gates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: CI Quality Gates
on:
pull_request:
branches-ignore: [ci-cd-maintenance]
paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/ci-gates.yml'
push:
branches: [main]
workflow_dispatch:
Expand Down Expand Up @@ -261,6 +266,7 @@ jobs:

- name: Check for dependency vulnerabilities
run: |
python -m pip install --upgrade pip
pip install pip-audit
pip-audit --desc

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches: [main]
pull_request:
branches-ignore: [ci-cd-maintenance]
paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/ci.yml'

# Cancel duplicate runs
concurrency:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/code-annotations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
on:
pull_request:
types: [opened, synchronize, reopened]
branches-ignore: [ci-cd-maintenance]
paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/code-annotations.yml'

permissions:
contents: read
Expand Down Expand Up @@ -90,11 +96,11 @@
echo "::warning file=$file::Large file detected ($size) - consider if this is necessary in the repository"
done

# Check for TODO/FIXME comments in changed files

Check notice on line 99 in .github/workflows/code-annotations.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: # Check for TODO/FIXME comments in changed files
git diff origin/${{ github.base_ref }}..HEAD --name-only | grep -E '\.(py|md|yml|yaml)$' | while read file; do
if [ -f "$file" ]; then
grep -n -E "(TODO|FIXME|XXX|HACK)" "$file" | while IFS=: read -r line_num content; do

Check notice on line 102 in .github/workflows/code-annotations.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: grep -n -E "(TODO|FIXME|XXX|HACK)" "$file" | while IFS=: read -r line_num content; do
echo "::notice file=$file,line=$line_num::Found TODO/FIXME: $content"

Check notice on line 103 in .github/workflows/code-annotations.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: echo "::notice file=$file,line=$line_num::Found TODO/FIXME: $content"
done || true
fi
done
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: Dependency Review
on:
pull_request:
branches-ignore: [ci-cd-maintenance]
# Also run on Dependabot PRs
pull_request_target:
branches-ignore: [ci-cd-maintenance]
paths:
- 'pyproject.toml'
- 'requirements*.txt'
- '**/requirements*.txt'
- '**/poetry.lock'
- '**/Pipfile.lock'
- '.github/workflows/dependency-review.yml'

permissions:
contents: read
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/docs-autogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
- api
- all
- missing
schedule:
- cron: '0 3 1 * *' # Monthly on the 1st at 3 AM UTC

permissions:
contents: write
Expand Down Expand Up @@ -267,13 +265,13 @@
output.append('```python')
output.append(f'def {name}(...):')
output.append(' \"\"\"')
output.append(' TODO: Add description here.')

Check notice on line 268 in .github/workflows/docs-autogen.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: output.append(' TODO: Add description here.')
output.append(' ')
output.append(' Args:')
output.append(' TODO: Document arguments')

Check notice on line 271 in .github/workflows/docs-autogen.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: output.append(' TODO: Document arguments')
output.append(' ')
output.append(' Returns:')
output.append(' TODO: Document return value')

Check notice on line 274 in .github/workflows/docs-autogen.yml

View workflow job for this annotation

GitHub Actions / Code Issue Annotations

Found TODO/FIXME: output.append(' TODO: Document return value')
output.append(' \"\"\"')
output.append('```')
output.append('')
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ name: Documentation CI
on:
pull_request:
branches-ignore: [ci-cd-maintenance]
paths:
- '**/*.py'
- 'docs/**'
- '**/*.md'
- '**/*.rst'
- 'pyproject.toml'
- '.github/workflows/docs.yml'
push:
branches: [main]
schedule:
- cron: '0 2 * * 1' # Weekly on Monday at 2 AM UTC for link rot detection

permissions:
contents: read
Expand Down Expand Up @@ -189,10 +194,10 @@ jobs:
python-version: '3.12'
cache: 'pip'

- name: Install pdoc
- name: Install documentation dependencies
run: |
pip install --upgrade pip
pip install pdoc
pip install -e ".[docs]"

- name: Generate API documentation preview
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fast-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches-ignore: [ci-cd-maintenance]
paths:
- '**.py'
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/fast-tests.yml'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr-feedback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request:
types: [opened, synchronize, reopened]
branches-ignore: [ci-cd-maintenance]
paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/pr-feedback.yml'

permissions:
contents: read
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ on:
branches: [main]
pull_request:
branches-ignore: [ci-cd-maintenance]
schedule:
# Run security scans daily at 3 AM UTC
- cron: '0 3 * * *'

paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/security.yml'
# Cancel duplicate runs
concurrency:
group: security-${{ github.ref }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/status-dashboard.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Status Dashboard

on:
schedule:
- cron: '0 */6 * * *' # Every 6 hours
workflow_dispatch:

permissions:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
branches: [main]
pull_request:
branches-ignore: [ci-cd-maintenance]
schedule:
# Run tests daily at 2 AM UTC
- cron: '0 2 * * *'
paths:
- '**/*.py'
- 'pyproject.toml'
- 'requirements*.txt'
- '.github/workflows/test.yml'
workflow_dispatch:
inputs:
test_level:
Expand Down Expand Up @@ -529,4 +531,3 @@ jobs:
name: nightly-${{ matrix.test-category }}-results
path: |
pytest-results.xml

4 changes: 0 additions & 4 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ name: Automated Version Bump
#
# TRIGGERS:
# - Automatic: Push to main (if changes warrant a version bump)
# - Scheduled: Weekly on Mondays at 9 AM UTC
# - Manual: workflow_dispatch (with duplicate prevention)

on:
push:
branches: [main]
schedule:
# Run weekly on Monday at 9 AM UTC
- cron: '0 9 * * 1'
workflow_dispatch:
inputs:
force_bump:
Expand Down
Loading