Skip to content

First draft

First draft #1

Workflow file for this run

name: Shadow Analysis

Check failure on line 1 in .github/workflows/shadow-analysis.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/shadow-analysis.yml

Invalid workflow file

(Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
on:
schedule:
# Nightly job
- 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
needs: [install_deps]
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- 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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: coverage-reports
path: |
coverage.xml
mypy-report.txt
analysis-shadow-sqc-eu:
name: "SQC-EU Shadow Analysis"
needs: [coverage]
runs-on: github-ubuntu-latest-s
if: github.ref == 'refs/heads/master'
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Download coverage artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: coverage-reports
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 #v3.3.1
with:
install_args: "poetry@2.2.1"
- run: mise use -g poetry@2.2.1
- uses: SonarSource/ci-github-actions/build-poetry@v1
env:
sonar-platform: sqc-eu
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer
analysis-shadow-sqc-us:
name: "SQC-US Shadow Analysis"
needs: [coverage]
runs-on: sonar-s-public
if: github.ref == 'refs/heads/master'
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Download coverage artifacts
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: coverage-reports
- uses: jdx/mise-action@e3d7b8d67a7958d1207f6ed871e83b1ea780e7b0 #v3.3.1
with:
install_args: "poetry@2.2.1"
- run: mise use -g poetry@2.2.1
- uses: SonarSource/ci-github-actions/build-poetry@v1
env:
sonar-platform: sqc-us
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer