Skip to content

Commit

Permalink
Fix dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Aug 30, 2024
1 parent 2c04f93 commit e6a2966
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
poetry run python3 slowzones.py --dry-run
poetry run python3 mbta-slowzone-bot/chalicelib/slowzones.py --dry-run
3 changes: 2 additions & 1 deletion mbta-slowzone-bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
# 13:30 UTC -> 8:30/9:30am ET every day.
@app.schedule(Cron(30, 13, "*", "*", "?", "*"))
def run_slowzone_bot(event):
slowzones.run()
# TODO: Run as production once tested
slowzones.run(dry_run=True, debug=True)
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.2.3"
description = "A Twitter/Mastodon/Slack bot to track MBTA slow zones"
authors = ["TransitMatters Labs Team"]
license = "MIT"
package-mode = false

[tool.poetry.dependencies]
python = "~3.12"
Expand Down

0 comments on commit e6a2966

Please sign in to comment.