Skip to content

Commit c3ef3e5

Browse files
committed
merge everything in Iris.yml
1 parent 83a1226 commit c3ef3e5

File tree

5 files changed

+57
-209
lines changed

5 files changed

+57
-209
lines changed

.cirrus/run_iris.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/scripts/run_iris.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/Iris.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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"

.github/workflows/iris.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/shadow-analysis.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)