@@ -36,10 +36,14 @@ jobs:
3636 needs : [build]
3737 permissions :
3838 id-token : write
39- contents : write
39+ contents : read
4040 steps :
4141 - uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
42+ - uses : jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 # v3.3.1
43+ with :
44+ install_args : " poetry@2.2.1"
4245 - run : |
46+ poetry install
4347 poetry run black src/ tests/ --check
4448 poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
4549 poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
5862 with :
5963 install_args : " poetry@2.2.1"
6064 - run : |
61- mise use -g poetry@2.2.1
6265 poetry run python tools/generate_cli_documentation.py
6366 git diff --exit-code CLI_ARGS.md
6467
8285 poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
8386 poetry run mypy src/ > mypy-report.txt || true
8487 sonar-platform : next
85-
88+ artifactory-reader-role : private-reader
89+ artifactory-deployer-role : qa-deployer
8690 qa :
8791 name : " Test Python ${{ matrix.python-version }}"
8892 runs-on : github-ubuntu-latest-s
@@ -100,7 +104,7 @@ jobs:
100104 install_args : " poetry@2.2.1"
101105 python-version : ${{ matrix.python-version }}
102106 - run : |
103- mise use -g poetry@2.2.1
107+ poetry install
104108 poetry run pytest tests/
105109
106110 qa-windows :
@@ -113,7 +117,7 @@ jobs:
113117 with :
114118 install_args : " poetry@2.2.1"
115119 - run : |
116- mise use -g poetry@2.2.1
120+ poetry install
117121 poetry run pytest tests/
118122 if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
119123
0 commit comments