Skip to content

Commit

Permalink
Added sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Dec 2, 2023
1 parent 5e7e6d8 commit 9fce992
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sonar-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sonar Check

on:
push:

jobs:
black:
name: Check Python Project Using Sonar
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required to interact with GitHub API
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 9fce992

Please sign in to comment.