-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (38 loc) · 1.41 KB
/
linter.yaml
File metadata and controls
44 lines (38 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Pylint
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
sudo apt update
python -m pip install --upgrade --no-cache-dir pip setuptools
python -m pip install --exists-action=w --no-cache-dir -r requirements1.txt
python -m pip install --exists-action=w --no-cache-dir -r requirements2.txt
python -m pip install --exists-action=w --no-cache-dir -r docs/requirements.txt
python -m pip install --upgrade --upgrade-strategy eager --no-cache-dir .
- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/gnn_aid" >> $GITHUB_ENV
- name: Run Pylint aux
run: pylint aux --fail-under=9.5
- name: Run Pylint datasets
run: pylint datasets --fail-under=9.75
- name: Run Pylint data_structures
run: pylint data_structures --fail-under=9.75
- name: Run Pylint Models
run: pylint models_builder --fail-under=9.5
- name: Run Pylint explainers
run: pylint explainers --fail-under=9.0
- name: Run Pylint attacks
run: pylint attacks --fail-under=9.0
- name: Run Pylint defenses
run: pylint defenses --fail-under=8.75