update validation types #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Examples | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
EXA_API_KEY: ${{ secrets.EXA_API_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run examples | |
run: | | |
for file in $(find examples -name "*.py" -type f); do | |
echo "Running example: $file" | |
echo "----------------------------------------" | |
poetry run python "$file" | |
echo "----------------------------------------" | |
echo "" | |
done |