Skip to content

Commit

Permalink
update project
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale committed May 23, 2024
1 parent 4455e38 commit 4d54ea1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,18 @@ jobs:
git checkout -B ${{ fromJson(steps.get_pr_data.outputs.data).head.ref }} upstream/${{ fromJson(steps.get_pr_data.outputs.data).head.ref }}
echo $(ls .)
cat coverage.xml
# - name: Move Coverage Report
# run: |
# mkdir test-reports
# mv coverage.xml test-reports
# echo $(ls .)
# echo $(ls test-reports)
- name: Move Coverage Report
run: |
mkdir test-reports
mv coverage.xml test-reports
echo $(ls .)
echo $(ls test-reports)
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: aries_cloudagent
args: >
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }}
-Dsonar.pullrequest.key=${{ fromJson(steps.get_pr_data.outputs.data).number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
poetry install --all-extras
- name: Tests
run: |
poetry run pytest --cov --cov-report xml 2>&1 | tee pytest.log
poetry run pytest --cov-config .coveragerc --cov=aries_cloudagent --cov-report term --cov-report xml 2>&1 | tee pytest.log
PYTEST_EXIT_CODE=${PIPESTATUS[0]}
if grep -Eq "RuntimeWarning: coroutine .* was never awaited" pytest.log; then
echo "Failure: Detected unawaited coroutine warning in pytest output."
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sonar.sources=.

sonar.projectName=aries-cloudagent-python

sonar.python.coverage.reportPaths=test-reports/coverage.xml
sonar.python.coverage.reportPaths=./test-reports/coverage.xml

0 comments on commit 4d54ea1

Please sign in to comment.