Skip to content

Commit

Permalink
delete codecov test, join with python-tests
Browse files Browse the repository at this point in the history
codecov will run alongside python-tests

Signed-off-by: Teo <[email protected]>
  • Loading branch information
teocns committed Dec 29, 2024
1 parent 39e5f72 commit 98fff5d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 54 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/codecov.yml

This file was deleted.

22 changes: 18 additions & 4 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,15 @@ jobs:
run: |
uv sync --dev --group test
- name: Install coverage tools
run: |
uv tool install coverage
- name: Run tests with coverage
if: matrix.python-version == '3.12'
run: |
uv run coverage run --source . -m pytest
uv run coverage report -m
uv run coverage xml
uvx coverage run --source . -m pytest
uvx coverage report -m
uvx coverage xml
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }}
Expand All @@ -70,3 +73,14 @@ jobs:
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}

# Only upload coverage report for python3.11
- name: Upload coverage to Codecov
if: ${{matrix.python-version == '3.11'}}
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true

0 comments on commit 98fff5d

Please sign in to comment.