-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (38 loc) · 1.1 KB
/
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
39
40
41
42
43
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: yaib
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=20 --max-line-length=127 --statistics
# - name: Test with pytest
# run: python -m pytest ./tests/recipes
# If we want to test running the tool later on
# - name: Setup package
# run: pip install -e .
# - name: Test command line tool
# run: python -m icu_benchmarks.run --help