name: Refresh Analyst Cache on: schedule: - cron: '0 7 * * 1-5' # 02:00 AM EST (07:00 UTC), Mon–Fri only workflow_dispatch: # allow manual trigger from the GitHub Actions UI jobs: refresh: runs-on: ubuntu-latest timeout-minutes: 90 # analyst phase ~50 min + news phase ~6 min steps: - name: Checkout repository uses: actions/checkout@v4 - name: Set up Python 3.11 uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies run: | pip install --upgrade pip pip install \ yfinance>=0.2.36 \ pandas>=2.0.0 \ requests>=2.28.0 \ vaderSentiment>=3.3.2 - name: Run cache builder env: SUPABASE_URL: ${{ secrets.SUPABASE_URL }} SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }} run: python cache_builder.py