Skip to content

Commit 881dbc8

Browse files
authored
Create python-app.yml
1 parent 602279e commit 881dbc8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/python-app.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ master, develop ]
9+
pull_request:
10+
branches: [ master, develop ]
11+
12+
jobs:
13+
lint:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Install ldap dependencies
19+
run: sudo apt-get install libldap2-dev libsasl2-dev
20+
- uses: actions/checkout@v2
21+
- name: Set up Python 3.7
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.7
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
- name: Lint with pylint
30+
run: |
31+
pylint packet

0 commit comments

Comments
 (0)