Skip to content

Commit

Permalink
ci: update CI workflow for Python testing jobs (tox->uv)
Browse files Browse the repository at this point in the history
  • Loading branch information
teocns committed Dec 28, 2024
1 parent 1d37241 commit c2264ed
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,32 @@ on:
- 'tests/**/*.ipynb'

jobs:
build:
test:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

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"]
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- uses: astral-sh/setup-uv@v4
with:
cache: 'pip'
python-version: '3.11'
- name: Install tox
run: pip install tox
- name: Run tests with tox
run: tox
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"

- name: Install dependencies
run: |
uv sync --dev --group='test'
- name: Run tests
run: |
uvx pytest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }}

0 comments on commit c2264ed

Please sign in to comment.