Skip to content

Commit 5279bcf

Browse files
committed
build: ci workflow
1 parent 4370a77 commit 5279bcf

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
common:
12+
uses: City-of-Helsinki/.github/.github/workflows/ci-django-api.yml@main
13+
secrets: inherit
14+
with:
15+
python-version: 3.11
16+
postgres-major-version: 13
17+
extra-commands: |
18+
echo 'SECRET_KEY=topsecret123' >> .env

sonar-project.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sonar.projectKey = City-of-Helsinki_notification-service-api
2+
sonar.projectName = notification-service-api
3+
sonar.organization = city-of-helsinki
4+
sonar.python.version = 3.11
5+
sonar.python.coverage.reportPaths = coverage.xml
6+
sonar.sources = .
7+
sonar.exclusions = **/migrations/*,**/tests/*
8+
sonar.tests = .
9+
sonar.test.inclusions = **/tests/**/*

0 commit comments

Comments
 (0)