Skip to content

Commit

Permalink
Setup CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Jul 31, 2024
1 parent d98a1c3 commit 9b41e5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ jobs:
continue-on-error: true
run: |
poetry run pytest --junitxml=build/reports/pytest.xml --cov=maap/ --cov-report=xml:build/reports/coverage.xml test/
- name: downcase REPO
run: |
echo "REPOSITORY_OWNER_LOWER=${GITHUB_REPOSITORY_OWNER@L}" >> "${GITHUB_ENV}"
- name: SonarCloud Scan
id: sonarcloud
uses: sonarsource/sonarcloud-github-action@master
Expand All @@ -137,8 +140,8 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ github.repository_owner }}
-Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.organization=${{ env.repository_owner_lower }}
-Dsonar.projectKey=${{ env.repository_owner_lower }}_${{ github.event.repository.name }}
-Dsonar.python.coverage.reportPaths=build/reports/coverage.xml
-Dsonar.sources=maap/
-Dsonar.tests=test/
Expand Down

0 comments on commit 9b41e5e

Please sign in to comment.