Skip to content

Commit d299129

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

File tree

5 files changed

+77
-209
lines changed

5 files changed

+77
-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: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
coverage:
15+
name: "Coverage report generation"
16+
runs-on: github-ubuntu-latest-s
17+
permissions:
18+
id-token: write
19+
contents: write
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
23+
- name: Configure poetry
24+
uses: ./.github/actions/config-poetry
25+
- run: |
26+
poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
27+
poetry run mypy src/ > mypy-report.txt || true
28+
- name: Upload coverage artifacts
29+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
30+
with:
31+
name: coverage-reports
32+
path: |
33+
coverage.xml
34+
mypy-report.txt
35+
36+
shadow-scans:
37+
name: Shadow Scans
38+
needs: coverage
39+
runs-on: github-ubuntu-latest-s
40+
permissions:
41+
id-token: write
42+
contents: write
43+
steps:
44+
- name: Checkout code
45+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
46+
47+
- name: Download coverage artifacts
48+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
49+
with:
50+
name: coverage-reports
51+
52+
- name: Build and run shadow scan
53+
uses: SonarSource/ci-github-actions/build-poetry@v1
54+
with:
55+
sonar-platform: next
56+
run-shadow-scans: true
57+
artifactory-reader-role: private-reader
58+
artifactory-deployer-role: qa-deployer
59+
60+
iris:
61+
name: IRIS Sync
62+
needs: shadow-scans
63+
runs-on: sonar-s-public
64+
if: github.ref == 'refs/heads/master'
65+
permissions:
66+
id-token: write
67+
contents: write
68+
steps:
69+
- name: Run IRIS Analysis
70+
uses: SonarSource/unified-dogfooding-actions/run-iris@v1
71+
with:
72+
primary_project_key: "SonarSource_sonar-scanner-python"
73+
primary_platform: "Next"
74+
shadow1_project_key: "SonarSource_sonar-scanner-python"
75+
shadow1_platform: "SQC-EU"
76+
shadow2_project_key: "SonarSource_sonar-scanner-python"
77+
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)