-
Notifications
You must be signed in to change notification settings - Fork 332
Update Testing confg and add search sub-dir testcases
#86
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
Merged
Changes from 56 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
49d06ad
add PyTest framework
WangGLJoseph 280c6e7
update pytest yml
WangGLJoseph c9e6b53
update CI
4a66b6a
activate workflow
5cf1881
fix branch name
150ae70
add missing checkout
6a752f1
Merge branch 'main' into pytest-ci
b594195
add correct docker command
63bea68
add sonar source files
5c6bdc7
output converage to both term and xml
757cf93
use acr-pytest for container name
830de0f
Update pytest.yml
Marti2203 78a89bf
Update sonar-project.properties
Marti2203 8a685f6
sonar fix and update sonar exclusions
b1ebfb1
add coverage file path
3292ab3
reduce code duplication
fab4c16
add temp dir in workflow for coverage report
26a154f
update sonar config
a9535b9
use tox and pytest outside container
f069337
add missing tox.ini file
19a8418
separate pytest and build workflow
e93d76d
fix conda env name in workflow
989ffc5
update shell to use login mode for pytest workflow
8e6ac78
update conda config
301dd26
set PYTHONPATH inside tox.ini
9b041ff
update tox.ini
56550c4
include Coverage.py in tox
598a5e6
add passenv to tox
86a1c22
change build yaml to only run on PR merge
6719301
remove redundant deps in tox.ini
a9a804c
abort Sonarqube Scan if coverage.xml is missing
2d1c671
specify source and test files for sonar
f531635
add test_search_utils
4d06ba8
change build to docker_build
53b7aa3
Merge branch 'main' into pytest-ci
c1d7a1a
update tox usage in workflow and documentation
26cf273
add test for search_utils.py
bc6fa09
fix get_code_region_around_line
62bd169
update testcase (need to clarify class signature)
2d9a5fb
fix sonar issues and update README
9adf8e9
add empty test files for search subdir
001a354
add testcase for internal methods of SearchBackend
da9d622
Merge branch 'pytest-unit' into pytest-ci
3212f7e
update tox.ini for more accurate coverage percentage
a95c2ff
fix test_search_utils
d440a14
add tests and add `converage` to whitelist for tox testenv
d7fccde
update test cases
54d5fab
update test_saerch_backend
119e5b7
add testcases for search subdir
91dbdd2
update TESTING.md with setup instructions for adding `conda-forge`
527c889
update tox.ini
7905a2c
implement fix from PR #81
WangGLJoseph d3fee77
Fake error
Marti2203 3600af3
Fix failing test
Marti2203 7acfa05
Fix fake error and add new one
Marti2203 d06e4e7
Update app/data_structures.py
Marti2203 5be4376
Update app/data_structures.py
Marti2203 b5ed6d9
Bump litellm from 1.44.8 to 1.53.1.dev1 (#88)
dependabot[bot] 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 hidden or 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,28 @@ | ||
| name: Build Docker Image | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| docker_build: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build docker image | ||
| run: docker build -f Dockerfile.minimal -t acr . | ||
|
|
||
| - name: Start docker image (background) | ||
| run: docker run --name acr-pytest -t -d acr | ||
|
|
||
| # Due to diffuculties with `conda activate` in docker, we do `conda run` while specifying the environment | ||
| # setting cov-report to term and xml -> outputs coverage report to terminal, and an xml file inside the container | ||
| - name: Run PyTest with Coverage (inside docker) | ||
| run: docker exec acr-pytest conda run --no-capture-output -n auto-code-rover pytest --cov=app test/ --cov-report=term --cov-report=xml |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.