Skip to content

Iris sync

Iris sync #160

Workflow file for this run

name: Iris sync
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
name: "Coverage report generation"
runs-on: github-ubuntu-latest-s
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Configure poetry
uses: ./.github/actions/config-poetry
- run: |
poetry run pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src --cov-branch tests
poetry run mypy src/ > mypy-report.txt || true
- name: Upload coverage artifacts
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: coverage-reports
path: |
coverage.xml
mypy-report.txt
shadow-scans:
name: Shadow Scans
needs: coverage
runs-on: github-ubuntu-latest-s
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download coverage artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: coverage-reports
- name: Build and run shadow scan
uses: SonarSource/ci-github-actions/build-poetry@v1
with:
sonar-platform: next
run-shadow-scans: true
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer
iris:
name: IRIS Sync
needs: shadow-scans
runs-on: github-ubuntu-latest-s
permissions:
id-token: write
contents: write
steps:
- name: Run IRIS Analysis
uses: SonarSource/unified-dogfooding-actions/run-iris@v1
with:
primary_project_key: "SonarSource_sonar-scanner-python"
primary_platform: "Next"
shadow1_project_key: "SonarSource_sonar-scanner-python"
shadow1_platform: "SQC-EU"
shadow2_project_key: "SonarSource_sonar-scanner-python"
shadow2_platform: "SQC-US"