feat: Support Bluesky #46
Workflow file for this run
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: dry_run | |
on: | |
pull_request: | |
workflow_dispatch: | |
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 Dry Run mode | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
poetry install | |
poetry run python3 slowzones.py --dry-run |