run #681
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '5 13 * * *' # 9:05AM EST every day | |
jobs: | |
bot: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
env: | |
ACCESS_KEY: ${{ secrets.ACCESS_KEY }} | |
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }} | |
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }} | |
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }} | |
BEARER_TOKEN: ${{ secrets.BEARER_TOKEN }} | |
MASTODON_CLIENT_KEY: ${{ secrets.MASTODON_CLIENT_KEY }} | |
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }} | |
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }} | |
ATP_AUTH_HANDLE: ${{ secrets.ATP_AUTH_HANDLE }} | |
ATP_AUTH_PASSWORD: ${{ secrets.ATP_AUTH_PASSWORD }} | |
SLOW_ZONE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.SLOW_ZONE_BOT_SLACK_WEBHOOK_URL }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run MBTA Slow Zone Bot in Debug mode | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry install | |
poetry run python3 slowzones.py --debug |