Skip to content

Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI

GH Actions: fix the pipeline (#564)

teocns1451de788690
diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml
index 8fd5e90b..735d9f84 100644
--- a/.github/workflows/python-testing.yml
+++ b/.github/workflows/python-testing.yml
@@ -1,6 +1,7 @@
name: Python Tests
on:
+ workflow_dispatch:
push:
branches:
- main
@@ -25,15 +26,15 @@ jobs:
strategy:
matrix:
- python-version: [3.7,3.8,3.9,3.10,3.11,3.12]
+ python-version: ["3.7","3.8","3.9","3.10","3.11","3.12"]
steps:
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v2
+ - uses: actions/checkout@v4
+ - uses: actions/setup-python@v5
with:
+ cache: 'pip'
python-version: '3.11' # Use a default Python version for running tox
- name: Install tox
run: pip install tox
- name: Run tests with tox
- run: tox
\ No newline at end of file
+ run: tox
diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml
index 6b03faf9..14ff89a8 100644
--- a/.github/workflows/static-analysis.yaml
+++ b/.github/workflows/static-analysis.yaml
@@ -9,6 +9,7 @@ on:
paths:
- '**/*.py'
+ workflow_dispatch:
permissions:
contents: read
@@ -33,30 +34,18 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- persist-credentials: false
fetch-depth: 0
- - name: Set up Python
- uses: actions/setup-python@v5
- id: setup_python
+ - uses: astral-sh/setup-uv@v4
with:
+ enable-cache: true
+ cache-dependency-glob: "**/pyproject.toml"
python-version: "3.11.10"
- - name: UV Cache
- # Manually cache the uv cache directory
- # until setup-python supports it:
- # https://github.com/actions/setup-python/issues/822
- uses: actions/cache@v4
- id: cache-uv
- with:
- path: ~/.cache/uv
- key: uvcache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
-
- name: Install packages
run: |
- python -m pip install -U uv pre-commit
- uv pip install --upgrade --system -e .[dev]
+ uv sync --group dev
- name: Run pre-commit
run: |
- pre-commit run --show-diff-on-failure --color=always --all-files
+ uvx pre-commit run --show-diff-on-failure --color=always --all-files
diff --git a/.github/workflows/tach-check.yml b/.github/workflows/tach-check.yml
index daa9e3d1..c70198af 100644
--- a/.github/workflows/tach-check.yml
+++ b/.github/workflows/tach-check.yml
@@ -1,6 +1,7 @@
name: Tach Check
on:
+ workflow_dispatch:
pull_request:
paths:
- '**/*.py'
@@ -12,17 +13,16 @@ jobs:
steps:
- name: Checkout code
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- - name: Set up Python
- uses: actions/setup-python@v2
+ - uses: astral-sh/setup-uv@v4
with:
- python-version: '3.11' # Specify the version of Python you need
+ enable-cache: true
+ cache-dependency-glob: "**/pyproject.toml"
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
- pip install ".[ci]"
+ uv sync --group ci
- name: Run Tach
- run: tach check
\ No newline at end of file
+ run: uvx tach check
diff --git a/tox.ini b/tox.ini
index b8ba505a..0a6c45bf 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,15 @@
# and then run "tox" from this directory.
[tox]
-envlist = py311
+env_list =
+ 3.13
+ 3.12
+ 3.11
+ 3.10
+ 3.9
+ 3.8
+ 3.7
+; skip_missing_interpreters = true
[testenv]
deps =