-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (36 loc) · 997 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
name: Lint
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
jobs:
python-linter:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
with: { submodules: recursive }
- name: setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: "${{ matrix.python }}"
miniforge-variant: Mambaforge
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: pylint
shell: bash -l {0}
run: |
pylint svgdigitizer
- name: black
shell: bash -l {0}
run: |
black --check --diff svgdigitizer
- name: isort
shell: bash -l {0}
run: |
isort --check --diff svgdigitizer --line-length 256