Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/daily_run_simple_bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Daily Build Simple Bot
on:
workflow_dispatch:
schedule:
- cron: "0 15 * * *" # every day, 11:00 EST
- cron: "*/1 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions!

# Daily job to run the simple forecast bot
jobs:
daily_build:
runs-on: ubuntu-latest #determines the machine that will run the job - keep as is
runs-on: ubuntu-latest # determines the machine that will run the job - keep as is
steps: # sets up the steps that will be run in order
# setup repository with all necessary dependencies - keep as is
- name: Check out repository
Expand All @@ -29,14 +29,13 @@ jobs:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction --no-root # note that this will install dependencies for the main bot, which is a bit more than what's needed for the simple bot. But that shouldn't matter much.
# run your bot
run: poetry install --no-interaction --no-root
- name: Run bot
run: |
poetry run python simple-forecast-bot.py
poetry run python main.py
# this reads the environment variables from the github repository.
# Store under Settings --> Secrets and variables --> Actions
env:
METACULUS_TOKEN: ${{ secrets.METACULUS_TOKEN }} # replace this with the name of the variable under which you stored your own Metaculus token
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ASKNEWS_CLIENT_ID: ${{ secrets.ASKNEWS_CLIENT_ID }}
ASKNEWS_SECRET: ${{ secrets.ASKNEWS_SECRET }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.env

.venv/
.vscode/
Loading
Loading