From 9482035d40f1e55456294ead9296d6b01ca1b4ed Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Sat, 6 Apr 2024 01:24:50 +0200 Subject: [PATCH] Create push_dev.yml --- .github/workflows/push_dev.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/push_dev.yml diff --git a/.github/workflows/push_dev.yml b/.github/workflows/push_dev.yml new file mode 100644 index 0000000..43c061a --- /dev/null +++ b/.github/workflows/push_dev.yml @@ -0,0 +1,26 @@ +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')