-
Notifications
You must be signed in to change notification settings - Fork 21
66 lines (56 loc) · 1.56 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Lint
on:
push:
branches:
- "master"
- "maintenance/.+"
pull_request:
branches:
- "master"
- "maintenance/.+"
schedule:
# Run a cron job once daily
- cron: "0 0 * * *"
jobs:
lint-format:
name: Lint & format checks
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
python-version: "3.7"
activate-environment: test
channel-priority: true
environment-file: devtools/conda-envs/test_env.yaml
auto-activate-base: false
use-mamba: true
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Environment Information
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Install linter / formatter
shell: bash -l {0}
run: |
mamba install 'pylint<2.13.0' black
- name: Install package
shell: bash -l {0}
run: |
python -m pip install --no-deps .
- name: Run pylint
shell: bash -l {0}
run: |
pylint --disable=W kinoml/
- name: Run black check
shell: bash -l {0}
if: always()
run: |
black --check -l 99 kinoml/ --exclude kinoml/_version.py