Skip to content

Commit 68e9ee9

Browse files
committed
SCANPY-221 Fix compatibility issue with Python 3.14
1 parent 2f8e4c4 commit 68e9ee9

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: build-poetry
2929
with:
3030
sonar-platform: none
31-
artifactory-reader-role: private-reader
31+
artifactory-reader-role: private-reader
3232
artifactory-deployer-role: qa-deployer
3333
deploy-pull-request: true
3434

@@ -41,7 +41,7 @@ jobs:
4141
steps:
4242
- name: Checkout repository
4343
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
44-
- name: Configure poetry
44+
- name: Configure poetry
4545
uses: ./.github/actions/config-poetry # We use this job to cache the poetry depend
4646
- run: |
4747
poetry install
@@ -135,8 +135,10 @@ jobs:
135135
id-token: write
136136
contents: write
137137
strategy:
138+
fail-fast: false
138139
matrix:
139-
python-version: ["3.9.18", "3.9.6", "3.10.13", "3.11.7", "3.12.1", "3.13.2"]
140+
python-version:
141+
["3.9.18", "3.9.6", "3.10.13", "3.11.7", "3.12.1", "3.13.2", "3.14.0"]
140142
steps:
141143
- name: Checkout repository
142144
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
@@ -189,14 +191,24 @@ jobs:
189191
if [ ! -f sonarqube_cache/sonarqube.zip ]; then
190192
wget -q https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-$SONARQUBE_VERSION.zip -O sonarqube_cache/sonarqube.zip
191193
fi
192-
- name: Configure poetry
194+
- name: Configure poetry
193195
uses: ./.github/actions/config-poetry
194196
- name: Execute the integration tests
195197
run: ./.github/scripts/run_its.sh
196198

197199
promote:
198200
name: "Promote"
199-
needs: [build, formatting, documentation, coverage, analysis, qa, qa-windows, its]
201+
needs:
202+
[
203+
build,
204+
formatting,
205+
documentation,
206+
coverage,
207+
analysis,
208+
qa,
209+
qa-windows,
210+
its,
211+
]
200212
runs-on: github-ubuntu-latest-s
201213
permissions:
202214
id-token: write

src/pysonar_scanner/configuration/cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def __create_parser(cls):
174174
"--sonar-python-analysis-parallel",
175175
"--analysis-in-parallel",
176176
"-Dsonar.python.analysis.parallel",
177-
type=bool,
178177
action=argparse.BooleanOptionalAction,
179178
help="When set to False the analysis will be single threaded",
180179
)
@@ -284,7 +283,6 @@ def __create_parser(cls):
284283
)
285284
scanner_behavior_group.add_argument(
286285
"--sonar-scm-exclusions-disabled",
287-
type=bool,
288286
action=argparse.BooleanOptionalAction,
289287
help="Defines whether files ignored by the SCM, e.g., files listed in .gitignore, will be excluded from the analysis or not",
290288
)
@@ -324,7 +322,6 @@ def __create_parser(cls):
324322
)
325323
scanner_behavior_group.add_argument(
326324
"--sonar-qualitygate-wait",
327-
type=bool,
328325
action=argparse.BooleanOptionalAction,
329326
help="Forces the analysis step to poll the server instance and wait for the Quality Gate status",
330327
)
@@ -353,7 +350,6 @@ def __create_parser(cls):
353350
)
354351
scanner_behavior_group.add_argument(
355352
"--sonar-scm-force-reload-all",
356-
type=bool,
357353
action=argparse.BooleanOptionalAction,
358354
help="Set this property to true to load blame information for all files, which may significantly increase analysis duration",
359355
)
@@ -364,7 +360,6 @@ def __create_parser(cls):
364360
)
365361
scanner_behavior_group.add_argument(
366362
"--sonar-python-skip-unchanged",
367-
type=bool,
368363
action=argparse.BooleanOptionalAction,
369364
help="Override the SonarQube configuration of skipping or not the analysis of unchanged Python files",
370365
)
@@ -511,7 +506,6 @@ def __create_parser(cls):
511506
reports_group.add_argument(
512507
"--sonar-python-xunit-skip-details",
513508
"--xunit-skip-details",
514-
type=bool,
515509
action=argparse.BooleanOptionalAction,
516510
help="When enabled, the test execution statistics is provided only on project level",
517511
)

0 commit comments

Comments
 (0)