forked from baudrly/hicstuff
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (30 loc) · 883 Bytes
/
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
name: build
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Create micromamba env. for package
uses: mamba-org/setup-micromamba@v1
with:
generate-run-shell: true
environment-file: environment.yml
- name: Install package
run: |
pip install .
shell: micromamba-shell {0}
- name: Check installed package
run: |
hicstuff --version
shell: micromamba-shell {0}
- name: Lint and test
run: |
pip install pytest-pylint pytest pytest-cov pylint codecov mappy
pytest --pylint --pylint-error-types=EF --pylint-rcfile=.pylintrc --doctest-modules --doctest-modules hicstuff
pytest --cov=hicstuff
codecov
shell: micromamba-shell {0}