Create pull_request_dev.yml
This commit is contained in:
26
.github/workflows/pull_request_dev.yml
vendored
Normal file
26
.github/workflows/pull_request_dev.yml
vendored
Normal file
@@ -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')
|
||||||
Reference in New Issue
Block a user