diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 00000000..4aee6e00 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,31 @@ +name: Static Code Analysis + +on: + pull_request: + push: + branches: ["main"] + +permissions: {} + +jobs: + pylint: + strategy: + matrix: + python-version: ["3.11"] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint src