Skip to content

Commit

Permalink
add configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Mar 29, 2024
1 parent d4a3fdb commit ddcf7bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/evals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Weekly Tests
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Runs at 00:00 UTC every Sunday
- cron: "0 0 * * 0" # Runs at 00:00 UTC every Sunday
push:
branches: [ main ]
branches: [main]
paths-ignore:
- '**' # Ignore all paths to ensure it only triggers on schedule
- "**" # Ignore all paths to ensure it only triggers on schedule

jobs:
weekly-tests:
Expand All @@ -20,15 +20,15 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: 'poetry'
cache: "poetry"

- name: Install Poetry
uses: snok/install-poetry@v1.3.1

- name: Install dependencies
run: poetry install --with dev
run: poetry install --with dev,anthropic

- name: Run all tests
run: poetry run pytest tests/
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Ruff
on:
push:
pull_request:
branches: [ main ]
branches: [main]

env:
WORKING_DIRECTORY: "."
Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ruff-log
path: ${{ env.WORKING_DIRECTORY }}/${{ env.RUFF_OUTPUT_FILENAME }}
path: ${{ env.WORKING_DIRECTORY }}/${{ env.RUFF_OUTPUT_FILENAME }}
10 changes: 5 additions & 5 deletions .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
python-version: ['3.11']
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand All @@ -22,8 +22,8 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache: "poetry"

- name: Cache Poetry virtualenv
uses: actions/cache@v2
with:
Expand All @@ -33,9 +33,9 @@ jobs:
${{ runner.os }}-poetry-
- name: Install dependencies
run: poetry install --with dev,docs,test-docs
run: poetry install --with dev,docs,test-docs,anthropic

- name: Run tests
run: poetry run pytest tests/openai/docs
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

0 comments on commit ddcf7bf

Please sign in to comment.