From 8c8e2a69efb2700e6be5aa133d18b913663a11e8 Mon Sep 17 00:00:00 2001 From: Russell Bunch Date: Sat, 28 Jan 2023 22:30:29 -0600 Subject: [PATCH] Fixes #165 --- .github/workflows/tests.yml | 5 +++++ noxfile.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 428b7d9e6..c126c8180 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,3 +21,8 @@ jobs: pip install .[ci] nox -e tests nox -e cover + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/noxfile.py b/noxfile.py index dc751b06e..2e8c9ab7b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -61,7 +61,8 @@ def tests(session): "--cov=tests", "--cov=network_modeling", "--cov-append", - "--cov-report=", + "--cov-report=xml", + "--cov-report=html", f"--cov-fail-under={COVERAGE_FAIL}", path, *session.posargs,