Skip to content

Commit

Permalink
update actions and wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Jul 27, 2024
1 parent 59ad710 commit 07e2ed1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

# Step 3: Install Hugo, Python 3.11 and Poetry
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3

# Step 5: Build the site and push to GitHub Pages
- name: Build Hugo Site
Expand All @@ -29,7 +29,7 @@ jobs:
cd ..
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./maiasahi/public
10 changes: 5 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,25 @@ jobs:
# Step 2: Checkout repo recursively
- name: Checkout repository
if: github.event_name == 'pull_request'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Checkout repository
if: github.event_name != 'pull_request'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

# Step 3: Install Hugo, Python 3.11 and Poetry
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3

- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -66,7 +66,7 @@ jobs:
cd ..
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./maiasahi/public
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
# Step 2: Checkout repo recursively
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand Down
2 changes: 1 addition & 1 deletion src/maiasahi/chatgpt/batch_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def make_batch_request(requests: list[dict]) -> list[dict]:
)
batch_id = batch.id

for _ in range(200):
for _ in range(24 * 60 * 60 // 3):
batch_result = client.batches.retrieve(batch_id=batch_id)
if batch_result.status == "completed":
break
Expand Down

0 comments on commit 07e2ed1

Please sign in to comment.