File tree Expand file tree Collapse file tree 3 files changed +44
-59
lines changed
Expand file tree Collapse file tree 3 files changed +44
-59
lines changed Original file line number Diff line number Diff line change 1111
1212 steps :
1313 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
14+ with :
15+ # Disabling shallow clones is recommended for improving the relevancy of reporting
16+ fetch-depth : 0
1417 - name : Set up Python
1518 uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1619 with :
3336 run : git fetch --unshallow
3437
3538 - name : Install and Run Sonar Scanner
39+ uses : SonarSource/sonarqube-scan-action@a31c9398be7ace6bbfaf30c0bd5d415f843d45e9 # v7.0.0
3640 env :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3841 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
39- run : |
40- export SONAR_SCANNER_VERSION=5.0.1.3006
41- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
42- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
43- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
44- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
45- export SONAR_SCANNER_OPTS="-server"
46- sonar-scanner \
47- -Dsonar.organization=academysoftwarefoundation \
48- -Dsonar.projectKey=AcademySoftwareFoundation_aswf-docker \
49- -Dsonar.sources=. \
50- -Dsonar.host.url=https://sonarcloud.io \
51- -Dsonar.login=$SONAR_TOKEN \
52- -Dsonar.projectDate=`git log $tag -n 1 --date=short --pretty="%ad"` \
53- -Dsonar.projectVersion=`pipenv run python setup.py --version`
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pytest = "*"
88atomicwrites = {version = " *" , markers = " platform_system == 'Windows'" }
99pytest-cov = " *"
1010pylint = " ==3.2.7"
11- black = " ==22.12 "
11+ black = " * "
1212mypy = " *"
1313pre-commit = " *"
1414pytest-pylint = " *"
You can’t perform that action at this time.
0 commit comments