Skip to content

Commit

Permalink
add tests dependencies to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinicius Vaz committed Oct 23, 2023
1 parent 7ce29e5 commit 33f3b1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-and-organize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
domino piece organize --build-images --source-url=https://github.com/${{github.repository}}
- name: Install Tests Dependencies
run: pip install pytest
run: pip install pytest && pip install tiktoken

- name: Run tests over built images
env:
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ REPOSITORY_LABEL = "OpenAI Domino Pieces"
# The version of this Pieces release
# Attention: changing this will create a new release
VERSION = "0.4.0"

7 changes: 0 additions & 7 deletions pieces/TextSummarizerPiece/test_text_summarizer_piece.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,3 @@ def test_piece():
encoding = tiktoken.encoding_for_model(piece_kwargs["openai_model"])
text_tokens = encoding.encode(text=generated_prompt)
assert len(text_tokens) <= piece_kwargs["completion_max_tokens"]





if __name__ == "__main__":
test_piece()

0 comments on commit 33f3b1c

Please sign in to comment.