Skip to content

Commit f48b43d

Browse files
committed
Update Pylint action
1 parent e1e376e commit f48b43d

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/pylint.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,42 @@
11
name: Pylint
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ main, live ]
6+
pull_request:
7+
branches: [ main, live ]
48

59
jobs:
610
build:
7-
defaults:
8-
run:
9-
working-directory: demo/graphtutorial
1011

1112
runs-on: ubuntu-latest
1213
strategy:
1314
matrix:
1415
python-version: ["3.8", "3.9", "3.10"]
16+
1517
steps:
1618
- uses: actions/checkout@v3
1719
- name: Set up Python ${{ matrix.python-version }}
1820
uses: actions/setup-python@v3
1921
with:
2022
python-version: ${{ matrix.python-version }}
21-
- name: Install dependencies
23+
- name: Install dependencies (user auth)
24+
working-directory: /user-auth/graphtutorial
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install pylint
29+
- name: Analyzing the code with pylint (user auth)
30+
working-directory: /user-auth/graphtutorial
31+
run: |
32+
pylint $(git ls-files '*.py')
33+
- name: Install dependencies (app auth)
34+
working-directory: /app-auth/graphapponlytutorial
2235
run: |
2336
python -m pip install --upgrade pip
2437
pip install -r requirements.txt
2538
pip install pylint
26-
- name: Analysing the code with pylint
39+
- name: Analyzing the code with pylint (app auth)
40+
working-directory: /app-auth/graphapponlytutorial
2741
run: |
2842
pylint $(git ls-files '*.py')

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"cSpell.words": [
3+
"graphapponlytutorial",
34
"graphtutorial",
45
"Pylint"
56
]

0 commit comments

Comments
 (0)