Skip to content

Commit

Permalink
Merge pull request #279 from PrefectHQ/labeler
Browse files Browse the repository at this point in the history
Add labeler
  • Loading branch information
jlowin authored Sep 4, 2024
2 parents b7b7338 + 713112c commit aaf6802
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
documentation:
- changed-files:
- any-glob-to-any-file: 'docs/*'
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion tests/tasks/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaf6802

Please sign in to comment.