3838 contents : write
3939 steps :
4040 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
41- - uses : jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
42- with :
43- install_args : " poetry@2.2.1"
44- - run : mise use -g poetry@2.2.1
45- - uses : SonarSource/ci-github-actions/build-poetry@v1
46- with :
47- sonar-platform : none
48- artifactory-reader-role : private-reader
49- artifactory-deployer-role : qa-deployer
50- - run : poetry install
41+ - uses : ./.github/actions/config-poetry
5142 - run : |
5243 poetry run black src/ tests/ --check
5344 poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
6657 with :
6758 install_args : " poetry@2.2.1"
6859 - run : mise use -g poetry@2.2.1
69- - run : poetry install
7060 - run : |
7161 poetry run python tools/generate_cli_documentation.py
7262 git diff --exit-code CLI_ARGS.md
@@ -86,13 +76,18 @@ jobs:
8676 mise use -g poetry@2.2.1
8777 - uses : SonarSource/ci-github-actions/build-poetry@v1
8878 with :
89- sonar-platform : next
79+ sonar-platform : none
9080 artifactory-reader-role : private-reader
9181 artifactory-deployer-role : qa-deployer
9282 - run : poetry install
9383 - run : |
9484 poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
9585 poetry run mypy src/ > mypy-report.txt || true
86+ - uses : SonarSource/ci-github-actions/build-poetry@v1
87+ with :
88+ sonar-platform : next
89+ artifactory-reader-role : private-reader
90+ artifactory-deployer-role : qa-deployer
9691
9792 qa :
9893 name : " Test Python ${{ matrix.python-version }}"
@@ -148,7 +143,7 @@ jobs:
148143 steps :
149144 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
150145 - name : Cache SonarQube
151- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
146+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
152147 with :
153148 path : sonarqube_cache/
154149 key : sonarqube-25.3.0.104237
@@ -160,10 +155,7 @@ jobs:
160155 fi
161156 env :
162157 SONARQUBE_VERSION : 25.3.0.104237
163- - uses : SonarSource/ci-github-actions/build-poetry@v1
164- with :
165- sonar-platform : none
166- script : .github/scripts/run_its.sh
158+ - run : .github/scripts/run_its.sh
167159
168160 promote :
169161 name : " Promote"
0 commit comments