Skip to content

Commit 26543d3

Browse files
committed
Updated poetry lock
1 parent 3f055f9 commit 26543d3

File tree

3 files changed

+90
-1
lines changed

3 files changed

+90
-1
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Hourly Run Main Bot
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "*/15 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions!
7+
8+
# Daily job to run the forecast bot
9+
jobs:
10+
daily_build:
11+
runs-on: ubuntu-latest # determines the machine that will run the job - keep as is
12+
steps: # sets up the steps that will be run in order
13+
# setup repository with all necessary dependencies - keep as is
14+
- name: Check out repository
15+
uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.11"
19+
- name: Install poetry
20+
uses: snok/install-poetry@v1
21+
with:
22+
virtualenvs-create: true
23+
virtualenvs-in-project: true
24+
installer-parallel: true
25+
- name: Load cached venv
26+
id: cached-poetry-dependencies
27+
uses: actions/cache@v4
28+
with:
29+
path: .venv
30+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
31+
- name: Install dependencies
32+
run: poetry install --no-interaction --no-root
33+
- name: Run bot
34+
run: |
35+
poetry run python scripts/run_forecasts_for_ai_tournament.py --bot-type main
36+
# this reads the environment variables from the github repository.
37+
# Store under Settings --> Secrets and variables --> Actions
38+
# Not all these variables are required. See the ReadMe for more details.
39+
env:
40+
METACULUS_TOKEN: ${{ secrets.METACULUS_TOKEN }}
41+
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
42+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
43+
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
44+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
45+
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
46+
PYTHONPATH: .
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Hourly Run Template Bot
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "*/15 * * * *" # runs every 15 minutes. Make sure to skip already forecasted questions!
7+
8+
# Daily job to run the forecast bot
9+
jobs:
10+
daily_build:
11+
runs-on: ubuntu-latest # determines the machine that will run the job - keep as is
12+
steps: # sets up the steps that will be run in order
13+
# setup repository with all necessary dependencies - keep as is
14+
- name: Check out repository
15+
uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: "3.11"
19+
- name: Install poetry
20+
uses: snok/install-poetry@v1
21+
with:
22+
virtualenvs-create: true
23+
virtualenvs-in-project: true
24+
installer-parallel: true
25+
- name: Load cached venv
26+
id: cached-poetry-dependencies
27+
uses: actions/cache@v4
28+
with:
29+
path: .venv
30+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
31+
- name: Install dependencies
32+
run: poetry install --no-interaction --no-root
33+
- name: Run bot
34+
run: |
35+
poetry run python scripts/run_forecasts_for_ai_tournament.py --bot-type template
36+
# this reads the environment variables from the github repository.
37+
# Store under Settings --> Secrets and variables --> Actions
38+
# Not all these variables are required. See the ReadMe for more details.
39+
env:
40+
METACULUS_TOKEN: ${{ secrets.METACULUS_TOKEN }}
41+
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }}
42+
EXA_API_KEY: ${{ secrets.EXA_API_KEY }}
43+
PYTHONPATH: .

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)