File tree Expand file tree Collapse file tree 5 files changed +57
-209
lines changed
Expand file tree Collapse file tree 5 files changed +57
-209
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Iris sync
2+ on :
3+ schedule :
4+ # Nightly job
5+ - cron : " 0 2 * * *"
6+ workflow_dispatch :
7+ push :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ shadow-scans :
15+ name : Shadow Scans
16+ runs-on : github-ubuntu-latest-s
17+ permissions :
18+ id-token : write
19+ contents : write
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
23+
24+ - name : Configure Poetry
25+ uses : ./.github/actions/config-poetry
26+
27+ - name : Run tests and type checking
28+ run : |
29+ poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
30+ poetry run mypy src/ > mypy-report.txt || true
31+
32+ - name : Build and run shadow scan
33+ uses : SonarSource/ci-github-actions/build-poetry@v1
34+ with :
35+ sonar-platform : next
36+ run-shadow-scans : true
37+ artifactory-reader-role : private-reader
38+ artifactory-deployer-role : qa-deployer
39+
40+ iris :
41+ name : IRIS Sync
42+ needs : shadow-scans
43+ runs-on : sonar-s-public
44+ if : github.ref == 'refs/heads/master'
45+ permissions :
46+ id-token : write
47+ contents : write
48+ steps :
49+ - name : Run IRIS Analysis
50+ uses : SonarSource/unified-dogfooding-actions/run-iris@v1
51+ with :
52+ primary_project_key : " SonarSource_sonar-scanner-python"
53+ primary_platform : " Next"
54+ shadow1_project_key : " SonarSource_sonar-scanner-python"
55+ shadow1_platform : " SQC-EU"
56+ shadow2_project_key : " SonarSource_sonar-scanner-python"
57+ shadow2_platform : " SQC-US"
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments