-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (33 loc) · 950 Bytes
/
lint.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
38
39
40
41
42
name: Run pylint and black
on:
release:
types: [created]
push:
branches: main
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # if a particular matrix build fails, don't skip the rest
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint black wheel
- name: Build package and install
run: |
python -m pip wheel . --wheel-dir dist
python -m pip install dist/snakecore*
- name: Linting code with black
run: black . --check
- name: Analysing code with pylint
run: pylint snakecore --fail-under=8