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 f3d9a66 commit 207f7f0
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,22 @@ 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: SonarCloud Scan
# id: sonarcloud
# uses: sonarsource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# with:
# args: >
# -Dsonar.organization=${{ github.repository_owner }}
# -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
# -Dsonar.python.coverage.reportPaths=build/reports/coverage.xml
# -Dsonar.sources=maap/
# -Dsonar.tests=tests/
# -Dsonar.projectName=${{ github.repository }}
# -Dsonar.projectVersion=${{ env.software_version }}
# -Dsonar.python.version=3.9,3.10
- name: SonarCloud Scan
id: sonarcloud
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ github.repository_owner }}
-Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }}
-Dsonar.python.coverage.reportPaths=build/reports/coverage.xml
-Dsonar.sources=maap/
-Dsonar.tests=tests/
-Dsonar.projectName=${{ github.repository }}
-Dsonar.projectVersion=${{ env.software_version }}
-Dsonar.python.version=3.9,3.10
- name: Build Python Artifact
id: poetry-build
run: |
Expand Down

0 comments on commit 207f7f0

Please sign in to comment.