Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.7 KB

README.md

File metadata and controls

49 lines (38 loc) · 1.7 KB

Griptape Trade School

Tutorials and Courses for Griptape.

Notes when adding new courses

  • Always put code in a folder called code_reviews/ under the docs directory if you'd like it to be picked up by the tests
  • You can insert python files into your docs with this notation:
    ```python linenums="1" title="app.py" hl_lines="11 74-77"
    --8<-- "docs/courses/chatbot-rulesets/assets/code_reviews/14/app.py"
    ```
    
    Note: Make sure the path is relative to the base_dir so in this case docs

Some fun things we should look into for Snippets

Run Tests Locally

This package explicitly does not include Griptape so that it can be specified when running tests in the workflow. It is installed with the test extra via poetry. If you need to update the version of griptape installed, then update the pyproject.toml

First copy .env.example to .env and fill out the keys required. Then run the following.

make install
make test

Run GitHub Action locally

  • Install Act

    brew install act
    

    For Windows use choco instead of brew

    choco install act-cli
    
  • Create a local .env file from the .env.example and fill out the keys required

  • Make sure you have Docker installed

  • Run the following command

    act -P ubuntu-latest=catthehacker/ubuntu:act-latest --secret-file .env