Skip to content

Create dependency group for gui and server #35

Create dependency group for gui and server

Create dependency group for gui and server #35

Workflow file for this run

name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint anybadge
- name: Analysing the code with pylint
run: |
mkdir -p output
pylint $(git ls-files '*.py') --exit-zero --output=output/pylint.txt
- name: Make the badge
run: |
PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' output/pylint.txt)
echo "Pylint score was $PYLINT_SCORE"
anybadge --label pylint --value $PYLINT_SCORE --file output/badge.svg 2=red 4=orange 8=yellow 10=green
- name: Archive generated files
uses: actions/upload-artifact@v4
with:
name: pylint
path: output/