pytest-api/.gitea/workflows/pylint.yml

24 lines
617 B
YAML
Raw Normal View History

2024-07-22 15:56:44 +00:00
name: Pylint
2024-07-22 18:26:27 +00:00
on: [ push ]
2024-07-22 15:56:44 +00:00
jobs:
build:
runs-on: ubuntu-gitea
2024-07-22 15:56:44 +00:00
strategy:
matrix:
2024-07-22 18:26:27 +00:00
python-version: [ "3.12" ]
2024-07-22 15:56:44 +00:00
steps:
2024-07-22 18:26:27 +00:00
- 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
python -m pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')