-
-
Notifications
You must be signed in to change notification settings - Fork 270
37 lines (37 loc) · 1.09 KB
/
pylint-checker.yml
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
on:
pull_request:
name: Pylint - checker
jobs:
pylint-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Ubuntu dependencies
run: |
sudo apt update
sudo apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0
sudo apt install -y libcurl4-openssl-dev libssl-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: Analysing the code with pylint
id: pylint-result
continue-on-error: true
run: |
pylint --version
mkdir -p output
python3 utils/pylint-parser.py > output/pylint-result
cat output/pylint-result
echo ${{ github.event.number }} > output/pr-number
- uses: actions/upload-artifact@v3
with:
name: pylint-result
path: output/