From b4fb7df2d895bcf1c725f215228208389cced528 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:29:43 -0400 Subject: [PATCH 1/2] Add labeler --- .github/labeler.yml | 3 +++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..d3265a05 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,3 @@ +documentation: +- changed-files: + - any-glob-to-any-file: 'docs/*' \ No newline at end of file diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..52474c6a --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 From 713112c181b980d421ba918162ddf0445e840530 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 3 Sep 2024 22:32:24 -0400 Subject: [PATCH 2/2] Fix flaky test --- tests/tasks/test_tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tasks/test_tasks.py b/tests/tasks/test_tasks.py index e3fbaf17..b535f43c 100644 --- a/tests/tasks/test_tasks.py +++ b/tests/tasks/test_tasks.py @@ -316,7 +316,8 @@ class Name(BaseModel): def test_annotated_result(self): task = Task( - "complete the task", result_type=Annotated[str, "a 5 digit zip code"] + "generate any result that satisfies the result type", + result_type=Annotated[str, "a 5 digit zip code"], ) task.run() assert len(task.result) == 5