8000 Dependabot GitHub Actions by dirkgr · Pull Request #5640 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Dependabot GitHub Actions #5640

Merged
merged 3 commits into from
May 26, 2022
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
5 changes 8000 : 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ updates:
versions:
- ">= 0.0.a"
- "< 0.1"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
4 changes: 2 additions & 2 deletions tests/training/learning_rate_schedulers/cosine_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def test_schedules(self):
lrs.append(optimizer.param_groups[0]["lr"])

for it, lr in lr_checks:
assert lrs[it] == lr, f"Iteration {it}: {lrs[it]} != {lr}"
assert lrs[it] == pytest.approx(lr), f"Iteration {it}: {lrs[it]} != {lr}"

def test_schedules_with_save_and_resume(self):
"""Make sure scheduler will resume with the right state."""
Expand Down Expand Up @@ -171,4 +171,4 @@ def init_and_restore_scheduler(
state = scheduler.state_dict()

for it, lr in lr_checks:
assert lrs[it] == lr, f"Iteration {it}: {lrs[it]} != {lr}"
assert lrs[it] == pytest.approx(lr), f"Iteration {it}: {lrs[it]} != {lr}"
0