Skip to content

feat(philosophy): expand to 12-principle QWED constitution + CI boundary gate #467

feat(philosophy): expand to 12-principle QWED constitution + CI boundary gate

feat(philosophy): expand to 12-principle QWED constitution + CI boundary gate #467

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov pytest-asyncio
pip install PyYAML matplotlib docker cryptography
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Run Tests and Generate Coverage
run: |
pytest --cov=src/qwed_new --cov=qwed_sdk --cov-report=xml tests/
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io