-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (34 loc) · 1.01 KB
/
conda-build.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
name: Conda build test
on:
push:
branches: ["main", "dev"]
paths: ["**.py", "environment.yml"]
pull_request:
branches: ["main", "dev"]
paths: ["**.py", "environment.yml"]
workflow_dispatch:
jobs:
build-conda-and-test:
name: Build conda env and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
create-args: >-
python=3.10
flake8
pytest
pytest-cov
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=30 --max-line-length=130 --statistics --ignore=E203,W503,E402
shell: micromamba-shell {0}
- name: Install package
run: pip install .
shell: micromamba-shell {0}
- name: Pytest
run: pytest --runslow -vv
shell: micromamba-shell {0}