podman-compose/.github/workflows/pylint.yml

30 lines
728 B
YAML
Raw Normal View History

2022-02-25 19:39:10 +01:00
name: Pylint
2022-02-25 19:50:52 +01:00
on:
- push
- pull_request
2022-02-25 19:39:10 +01:00
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2022-02-25 19:42:32 +01:00
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2022-02-25 19:39:10 +01:00
pip install pylint
- name: Analysing the code with pylint
run: |
2022-02-25 19:42:32 +01:00
# pylint $(git ls-files '*.py')
2022-02-25 19:50:52 +01:00
python -m compileall podman_compose.py
2022-02-25 19:42:32 +01:00
pylint podman_compose.py
2022-02-25 19:50:52 +01:00