-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 910 Bytes
/
ci.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: CI
on:
workflow_dispatch:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
# needed for miniconda
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: recipys
environment-file: environment.yml
auto-activate-base: false
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# the GitHub editor is 127 chars wide
flake8 . --count --max-complexity=18 --max-line-length=127 --statistics
- name: Test with pytest
run: python -m pytest ./tests