-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1 KB
/
run-code-analysis.yml
File metadata and controls
41 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Simple Python Code Analysis
on: [ push, pull_request ]
jobs:
code-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run linters
run: make lint
- name: Run all tests
run: make test
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args:
-Dsonar.projectKey=innonymous_backend
-Dsonar.organization=innonymous
-Dsonar.sources=./src/innonymous
-Dsonar.tests=./src/tests
-Dsonar.python.coverage.reportPaths=coverage.xml