-
Notifications
You must be signed in to change notification settings - Fork 44
48 lines (39 loc) · 1.27 KB
/
python-package-conda.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
44
45
46
47
48
name: Build
on: [push,pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
# container:
# image: mambaorg/micromamba:latest
steps:
- uses: actions/checkout@v2
- name: Setup environment with micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
cache-environment: true
- name: Check micromamba install
shell: bash -l {0}
run: |
micromamba --version
micromamba env list
# - name: Install dependencies
# run: mamba env update -f environment.yml
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --builtins="snakemake" --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Install DROP
shell: bash -l {0}
run: pip install -e .
- name: Test with pytest
shell: bash -l {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
micromamba install pytest
pip install -r tests/requirements.txt
pytest