File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 with SonarSource Poetry action
33+ uses : SonarSource/ci-github-actions/build-poetry@v1
34+ with :
35+ sonar-platform : next
36+ run-shadow-scans : true
37+
38+ iris :
39+ name : IRIS Sync
40+ needs : shadow-scans
41+ runs-on : sonar-s-public
42+ if : github.ref == 'refs/heads/master'
43+ permissions :
44+ id-token : write
45+ contents : write
46+ steps :
47+ - name : Run IRIS Analysis
48+ uses : SonarSource/unified-dogfooding-actions/run-iris@v1
49+ with :
50+ primary_project_key : " SonarSource_sonar-scanner-python"
51+ primary_platform : " Next"
52+ shadow1_project_key : " SonarSource_sonar-scanner-python"
53+ shadow1_platform : " SQC-EU"
54+ shadow2_project_key : " SonarSource_sonar-scanner-python"
55+ 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