From b8c609d350168c5d823e08f7b8a5559e86506753 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Sat, 6 Apr 2024 01:24:00 +0200 Subject: [PATCH] Create pull_request_dev.yml --- .github/workflows/pull_request_dev.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pull_request_dev.yml diff --git a/.github/workflows/pull_request_dev.yml b/.github/workflows/pull_request_dev.yml new file mode 100644 index 0000000..641e6c2 --- /dev/null +++ b/.github/workflows/pull_request_dev.yml @@ -0,0 +1,26 @@ +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 $(git ls-files '*.py')