From 14ae30365568f686c890f1ff30524d35fabb8155 Mon Sep 17 00:00:00 2001 From: "Juan M. Tirado" Date: Mon, 27 May 2024 10:58:27 +0200 Subject: [PATCH] fix: add missing ci and sonar files --- .github/workflows/ci.yaml | 12 ++++++++++++ .github/workflows/sonar.yaml | 10 ++++++++++ sonar-project.properties | 5 +++++ 3 files changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/sonar.yaml create mode 100644 sonar-project.properties diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..b6bd1af --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,12 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + shared: + uses: pantos-io/ci-workflows/.github/workflows/python-ci.yml@8651148b739f73851ab50c671da422c94bc55095 + secrets: inherit diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml new file mode 100644 index 0000000..8e56322 --- /dev/null +++ b/.github/workflows/sonar.yaml @@ -0,0 +1,10 @@ +name: Sonar + +on: + workflow_run: + workflows: [CI] + types: [completed] + +jobs: + shared: + uses: pantos-io/ci-workflows/.github/workflows/sonar.yml@v1 diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..2b4017b --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,5 @@ +sonar.projectKey=pantos-io_servicenode +sonar.organization=pantos-io +sonar.python.coverage.reportPaths=coverage-3.12.xml +sonar.python.version=3.12 +sonar.coverage.exclusions=**/tests/**,**/migrations/**