Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Dependabot GitHub Actions (#5640)
Browse files Browse the repository at this point in the history
* chore: Included githubactions in the dependabot config

This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>

* floats need approximate math

Co-authored-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
dirkgr and naveensrinivasan authored May 26, 2022
1 parent 60fae31 commit 39b3c96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 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 comments on commit 39b3c96

Please sign in to comment.