Skip to content

Add Siemens TD-3511 #278

Add Siemens TD-3511

Add Siemens TD-3511 #278

name: Python code checks
on:
push:
branches:
- "**"
pull_request:
branches:
- master
workflow_dispatch:
jobs:
check_python_code:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
name: Running Python code checks with Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pipenv"
- name: Install pipenv
run: |
python -m pip install --upgrade pip pipenv
python --version; python -m pip --version; pipenv --version
- name: Setup project with pipenv
run: |
pipenv --python ${{ matrix.python-version }} install --dev
- name: Check code style
run: |
pipenv run format_check
- name: Check import order
run: |
pipenv run isort_check
- name: Lint with pylint
run: |
pipenv run lint_check
- name: Run unit tests
run: |
pipenv run test