Skip to content

Commit b113e32

Browse files
committed
merge everything in Iris.yml
1 parent 73fd354 commit b113e32

5 files changed

Lines changed: 55 additions & 209 deletions

File tree

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

.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)