Skip to content

Commit

Permalink
CI: Add code checks to MR
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWinterstein committed Dec 29, 2024
1 parent 0b2e752 commit 7cebc6e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Check MR

on: [pull_request]

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: pkgxdev/dev@v1
- run: echo $PATH
2 changes: 1 addition & 1 deletion toogoodtogo_ha_mqtt_bridge/tests/test_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
("2022-11-12 20:54:44", "*/10 7-20 * * *", "2022-11-13 07:00:00"),
],
)
def test_calc_next_run(_time, _cron, expected):
def test_calc_next_run(_time, _cron, expected) -> None:
expected_date = dt.datetime.strptime(expected, "%Y-%m-%d %H:%M:%S")
time_date = dt.datetime.strptime(_time, "%Y-%m-%d %H:%M:%S")

Expand Down

0 comments on commit 7cebc6e

Please sign in to comment.