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
46 changes: 46 additions & 0 deletions .github/workflows/hourly-run-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Hourly Run Main Bot

on:
workflow_dispatch:
schedule:
- cron: "*/15 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions!

# Daily job to run the forecast bot
jobs:
daily_build:
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
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
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
- name: Run bot
run: |
poetry run python scripts/run_forecasts_for_ai_tournament.py --bot-type main
# this reads the environment variables from the github repository.
# Store under Settings --> Secrets and variables --> Actions
# Not all these variables are required. See the ReadMe for more details.
env:
METACULUS_TOKEN: ${{ secrets.METACULUS_TOKEN }}
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
PYTHONPATH: .
43 changes: 43 additions & 0 deletions .github/workflows/hourly-run-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Hourly Run Template Bot

on:
workflow_dispatch:
schedule:
- cron: "*/15 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions!

# Daily job to run the forecast bot
jobs:
daily_build:
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
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
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
- name: Run bot
run: |
poetry run python scripts/run_forecasts_for_ai_tournament.py --bot-type template
# this reads the environment variables from the github repository.
# Store under Settings --> Secrets and variables --> Actions
# Not all these variables are required. See the ReadMe for more details.
env:
METACULUS_TOKEN: ${{ secrets.METACULUS_TOKEN }}
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
PYTHONPATH: .
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "forecasting-tools"
version = "0.1.4"
version = "0.2.0"
description = "AI forecasting and research tools to help humans reason about and forecast the future"
authors = ["Benjamin Wilson <[email protected]>"]
license = "MIT"
Expand Down
Loading