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
26 changes: 26 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 5
commit-message:
prefix: "chore(ci)"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
day: "monday"
open-pull-requests-limit: 5
commit-message:
prefix: "chore(deps)"
groups:
python-minor:
patterns:
- "*"
update-types:
- "minor"
- "patch"
9 changes: 9 additions & 0 deletions tests/test_ci_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ def test_github_actions_are_pinned_to_commit_shas() -> None:
]

assert offenders == []


def test_dependabot_tracks_ci_and_python_updates() -> None:
config = ROOT / ".github" / "dependabot.yml"

assert config.exists()
content = config.read_text()
assert 'package-ecosystem: "github-actions"' in content
assert 'package-ecosystem: "pip"' in content
Loading