sway-autostart-i3ipc/.github/workflows/pylint.yml

27 lines
668 B
YAML
Raw Normal View History

2023-10-15 03:33:13 +00:00
name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2023-10-15 03:49:55 +00:00
python-version: ["3.8", "3.9", "3.10", "3.11"]
2023-10-15 03:33:13 +00:00
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
2023-10-15 03:33:13 +00:00
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
2023-10-15 03:33:13 +00:00
- name: Install dependencies
run: |
2023-10-15 04:01:09 +00:00
sudo apt install -y libsystemd-dev
2023-10-15 03:49:55 +00:00
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install pylint
2023-10-15 03:33:13 +00:00
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')