chore: Added support for Groq, Cohere and Open AI. However, tool call… #12
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
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Python ruff linter format-checker | |
on: | |
push: | |
branches: [ "master" ] | |
paths: | |
- "**.py" | |
pull_request: | |
branches: [ "master" ] | |
paths: | |
- "**.py" | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install tools | |
run: | | |
pip install ruff | |
- name: Format check with ruff | |
run: | | |
ruff format --target-version py312 --check --respect-gitignore --no-preview | |
- name: Lint with ruff | |
run: | | |
ruff check --target-version py312 --output-format full --respect-gitignore . |