Files
IPsecExporter/.github/workflows/push_dev.yml
2024-04-06 01:24:50 +02:00

27 lines
540 B
YAML

name: Chack code on dev push
on:
push:
branches:
- "dev"
paths:
- "ipsec_exporter.py"
- "src/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: pylint $(git ls-files '*.py')