-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop support for py38 & uv chore upgrade (#606)
* py3.9 Signed-off-by: Teo <teocns@gmail.com> * trigger wf Signed-off-by: Teo <teocns@gmail.com> * add Python 3.13 support * remove devin test timing out CI Signed-off-by: Teo <teocns@gmail.com> --------- Signed-off-by: Teo <teocns@gmail.com>
- Loading branch information
Showing
9 changed files
with
126 additions
and
273 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# :: Use nektos/act to run this locally | ||
# :: Example: | ||
# :: `act push -j python-tests --matrix python-version:3.10 --container-architecture linux/amd64` | ||
name: Python Tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'agentops/**/*.py' | ||
- 'agentops/**/*.ipynb' | ||
- 'tests/**/*.py' | ||
- 'tests/**/*.ipynb' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'agentops/**/*.py' | ||
- 'agentops/**/*.ipynb' | ||
- 'tests/**/*.py' | ||
- 'tests/**/*.ipynb' | ||
|
||
jobs: | ||
python-tests: | ||
runs-on: ubuntu-latest | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup UV | ||
uses: astral-sh/setup-uv@v5 | ||
continue-on-error: true | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache-prefix: uv-${{ matrix.python-version }} | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
|
||
- name: Install dependencies | ||
run: | | ||
uv sync --group test --group dev | ||
- name: Run tests with coverage | ||
timeout-minutes: 10 | ||
run: | | ||
uv run -m pytest tests/ -v --cov=agentops --cov-report=xml | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }} | ||
PYTHONUNBUFFERED: "1" | ||
|
||
# Only upload coverage report for python3.11 | ||
- name: Upload coverage to Codecov | ||
if: ${{matrix.python-version == '3.11'}} | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./coverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true # Should we? |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.