-
Notifications
You must be signed in to change notification settings - Fork 54
36 lines (34 loc) · 1.02 KB
/
python-pylint.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
name: Pylint
on: ["push"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with pylint
run: |
pip install pylint
score=$(python pylint_score.py --score)
color=$(python pylint_score.py --color)
echo "PYLINT_SCORE=$score/10.00"
echo "PYLINT_COLOR=$color"
echo "PYLINT_SCORE=$score/10.00" >> $GITHUB_ENV
echo "PYLINT_COLOR=$color" >> $GITHUB_ENV
- name: Create Pylint Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 00ce73155619a4544884ca6d251954b3
filename: pyflow_pylint_badge.json
label: Pylint
message: ${{ env.PYLINT_SCORE }}
color: ${{ env.PYLINT_COLOR }}
style: plastic