name: Chack code on dev pull request on: pull_request: 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 --exit-zero $(git ls-files '*.py')