-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DO NOT MERGE!!! Check coverage comments #1062
Closed
Closed
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a64c759
Add a dummy file
kumaranvpl 566598a
Add failing test for dummy
kumaranvpl 8e206d2
Update test
kumaranvpl 9056674
Fix dummy tests
kumaranvpl 2508655
Merge branch 'main' into check-coverage-comments
kumaranvpl a6a74f2
Merge branch 'main' into check-coverage-comments
kumaranvpl 297de50
Merge branch 'main' into check-coverage-comments
kumaranvpl 0832a4c
Merge branch 'check-coverage-comments' of github.com:ag2ai/ag2 into c…
kumaranvpl 63083d7
Merge branch 'main' into check-coverage-comments
kumaranvpl aa0644a
Merge branch 'main' into check-coverage-comments
kumaranvpl edb35dd
Merge branch 'main' into check-coverage-comments
kumaranvpl b037378
Merge branch 'main' into check-coverage-comments
kumaranvpl f46420e
Merge branch 'main' into check-coverage-comments
kumaranvpl 2aa8d6b
Merge branch 'main' into check-coverage-comments
kumaranvpl ef81e8f
Add codecov.yml with sane defaults
kumaranvpl d01eb98
Add validated codecov.yml
kumaranvpl 6b1e747
Update codecov config
kumaranvpl 3e3db00
Increase n builds
kumaranvpl 82440cc
Merge branch 'main' into check-coverage-comments
kumaranvpl f6492fd
Merge branch 'main' into check-coverage-comments
kumaranvpl b58bb26
Merge branch 'check-coverage-comments' of github.com:ag2ai/ag2 into c…
kumaranvpl 1cf0951
Disable codecov commenting
kumaranvpl f66b409
Merge branch 'main' into check-coverage-comments
kumaranvpl 59a2016
Hide project coverage
kumaranvpl 80d0e3d
Merge branch 'main' into check-coverage-comments
kumaranvpl f98c43f
Change comment layout and other minor stuff
kumaranvpl 18c22b9
Reduce after_n_builds
kumaranvpl 392bbeb
Revert some changes
kumaranvpl b5a4787
Merge branch 'main' into check-coverage-comments
kumaranvpl 792ef3d
Increase after_n_builds
kumaranvpl 87e3eee
Increase after_n_builds
kumaranvpl 10f69af
Trigger codecov manually
kumaranvpl 50dc60d
Merge branch 'main' into check-coverage-comments
kumaranvpl 5069b29
Add permissions
kumaranvpl 24b78cd
Remove graphrag tests as requirement
kumaranvpl d2fd4f2
Push without concurrency
kumaranvpl 4ea0fdc
Do not fail with failure
kumaranvpl c70eab2
Update codecov
kumaranvpl 25a1eea
Merge branch 'main' into check-coverage-comments
kumaranvpl 04a6cd8
Turn off manual trigger
kumaranvpl e180e7b
Add sub
kumaranvpl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,27 @@ | ||
name: Notify Codecov | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- "Contrib tests with LLMs" | ||
- "Contrib tests without LLMs" | ||
- "Core tests with LLMs" | ||
- "Core tests without LLMs" | ||
- "Integration tests" | ||
- "Test with optional dependencies" | ||
types: | ||
- completed | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'success' | ||
steps: | ||
- name: Send Codecov notification | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
run_command: send-notifications | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: false |
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,17 @@ | ||
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from math import ceil | ||
|
||
|
||
def add(a: int, b: int) -> int: | ||
return a + b | ||
|
||
|
||
def ag2_ceil(x: float) -> int: | ||
return ceil(x) | ||
|
||
|
||
def sub(a: int, b: int) -> int: | ||
return a - b |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (c) 2023 - 2025, AG2ai, Inc., AG2ai open-source projects maintainers and core contributors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
from autogen.dummy import add, ag2_ceil | ||
|
||
|
||
def test_add() -> None: | ||
actual = add(3, 5) | ||
expected = 8 | ||
assert actual == expected | ||
|
||
|
||
def test_ag2_ceil() -> None: | ||
actual = ag2_ceil(0.9) | ||
expected = 1 | ||
assert actual == expected |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium