From 134ec38817dcc608cbcb998b938fcad426035883 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 17 Jun 2024 14:56:41 -0400 Subject: [PATCH] Update tests --- .github/workflows/run-tests.yml | 2 +- src/controlflow/core/task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e8571832..c17daf53 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -42,7 +42,7 @@ jobs: runs-on: ${{ matrix.os }} env: - CONTROLFLOW_OPENAI_API_KEY: ${{ secrets.CONTROLFLOW_OPENAI_API_KEY }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} steps: - uses: actions/checkout@v4 diff --git a/src/controlflow/core/task.py b/src/controlflow/core/task.py index 0769d2ae..2df27575 100644 --- a/src/controlflow/core/task.py +++ b/src/controlflow/core/task.py @@ -57,7 +57,7 @@ def get_task_run_name() -> str: context = TaskRunContext.get() - return f'Run {context.parameters['self'].friendly_name()}' + return f'Run {context.parameters["self"].friendly_name()}' class TaskStatus(Enum):