diff --git a/.github/workflows/pull_request_master.yml b/.github/workflows/pull_request_master.yml new file mode 100644 index 0000000..4af4006 --- /dev/null +++ b/.github/workflows/pull_request_master.yml @@ -0,0 +1,26 @@ +name: Chack code on master pull request + +on: + pull_request: + branches: + - "master" + 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')