Add function calling support (#38) #89
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: GPTJSON Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run_lint: | |
name: Run python linting | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: ["3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install python dependencies | |
run: | | |
export PATH="/Users/runner/.local/bin:$PATH" | |
poetry install | |
- name: Check Python formatting with Black | |
run: | | |
poetry run black --check gpt_json | |
- name: Run MyPy for type checking | |
run: | | |
poetry run mypy gpt_json |