-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (32 loc) · 835 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
name: flake8
on:
push:
branches:
- '*'
jobs:
flake8:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
activate-environment: moranpycess-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Black & Isort
shell: bash -l {0}
run: |
black moranpycess/ tests/unit/
isort moranpycess/ tests/unit/
- name: Flake8
shell: bash -l {0}
run: flake8 moranpycess/ tests/unit/