From ddcf7bf3b39448d398b9f440c9c97bf7b0952105 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Thu, 28 Mar 2024 22:46:01 -0400 Subject: [PATCH] add configs --- .github/workflows/evals.yml | 12 ++++++------ .github/workflows/ruff.yml | 4 ++-- .github/workflows/test_docs.yml | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/evals.yml b/.github/workflows/evals.yml index d054d1b6e..bc83ff0f8 100644 --- a/.github/workflows/evals.yml +++ b/.github/workflows/evals.yml @@ -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: @@ -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 }} \ No newline at end of file + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 2c35eeac9..eaecfbe65 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -3,7 +3,7 @@ name: Ruff on: push: pull_request: - branches: [ main ] + branches: [main] env: WORKING_DIRECTORY: "." @@ -42,4 +42,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: ruff-log - path: ${{ env.WORKING_DIRECTORY }}/${{ env.RUFF_OUTPUT_FILENAME }} \ No newline at end of file + path: ${{ env.WORKING_DIRECTORY }}/${{ env.RUFF_OUTPUT_FILENAME }} diff --git a/.github/workflows/test_docs.yml b/.github/workflows/test_docs.yml index 8e4124922..e352421e4 100644 --- a/.github/workflows/test_docs.yml +++ b/.github/workflows/test_docs.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: - python-version: ['3.11'] + python-version: ["3.11"] steps: - uses: actions/checkout@v2 @@ -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: @@ -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 }} \ No newline at end of file + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}