4343 with :
4444 install_args : " poetry@2.2.1"
4545 - run : mise use -g poetry@2.2.1
46+ - uses : SonarSource/ci-github-actions/build-poetry@v1
47+ with :
48+ sonar-platform : none
49+ artifactory-reader-role : private-reader
4650 - run : |
47- poetry install
4851 poetry run black src/ tests/ --check
4952 poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
5053 poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
@@ -83,12 +86,13 @@ jobs:
8386 mise use -g poetry@2.2.1
8487 - uses : SonarSource/ci-github-actions/build-poetry@v1
8588 with :
86- script : |
87- poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
88- poetry run mypy src/ > mypy-report.txt || true
8989 sonar-platform : next
9090 artifactory-reader-role : private-reader
9191 artifactory-deployer-role : qa-deployer
92+ - run : |
93+ poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
94+ poetry run mypy src/ > mypy-report.txt || true
95+
9296 qa :
9397 name : " Test Python ${{ matrix.python-version }}"
9498 runs-on : github-ubuntu-latest-s
@@ -104,10 +108,13 @@ jobs:
104108 - uses : jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
105109 with :
106110 install_args : " poetry@2.2.1"
107- python-version : ${{ matrix.python-version }}
108111 - run : mise use -g poetry@2.2.1
112+ - uses : SonarSource/ci-github-actions/build-poetry@v1
113+ with :
114+ sonar-platform : none
115+ python-version : ${{ matrix.python-version }}
116+ artifactory-reader-role : private-reader
109117 - run : |
110- poetry install
111118 poetry run pytest tests/
112119
113120 qa-windows :
@@ -119,10 +126,12 @@ jobs:
119126 - uses : jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
120127 with :
121128 install_args : " poetry@2.2.1"
129+ - uses : SonarSource/ci-github-actions/build-poetry@v1
130+ with :
131+ sonar-platform : none
132+ artifactory-reader-role : private-reader
122133 - run : |
123- poetry install
124134 poetry run pytest tests/
125- if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
126135
127136 its :
128137 name : " Integration Tests"
0 commit comments