diff --git a/.github/workflows/python-testing.yml b/.github/workflows/python-testing.yml index 357624a5..340ea00d 100644 --- a/.github/workflows/python-testing.yml +++ b/.github/workflows/python-testing.yml @@ -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 }}