Debian Codegraph @

.github/workflows/main.yml

raw symbols SCIP
1 name: "Main CI"
2
3 on:
4 pull_request:
5 branches: [ master ]
6 push:
7 branches: [ master ]
8
9 jobs:
10 main:
11 runs-on: ubuntu-latest
12
13 strategy:
14 matrix:
15 python-version: ["3.8"]
16
17 steps:
18 - uses: actions/checkout@v2
19 with:
20 persist-credentials: false
21 fetch-depth: 0
22
23 - uses: conda-incubator/setup-miniconda@v2
24 with:
25 activate-environment: deblur
26 python-version: ${{ matrix.python-version }}
27
28 - name: Install packages
29 shell: bash -l {0}
30 run: |
31 conda create --yes -n deblur python=${{ matrix.python-version }} pip nose flake8 h5py
32 conda activate deblur
33 conda install --yes -c bioconda VSEARCH>=2.7.0 MAFFT>=7.394 SortMeRNA=2.0
34
35
36 echo "=============================="
37 echo "====== Software Versions ====="
38 echo "=============================="
39
40 echo "vsearch version:"
41 vsearch --version
42
43 echo "mafft version:"
44 mafft --version
45
46 echo "=============================="
47 echo "=============================="
48 echo "=============================="
49
50 pip install coveralls
51 pip install -e .
52
53 - name: Run tests
54 shell: bash -l {0}
55 run: |
56 conda activate deblur
57 nosetests --with-doctest --with-coverage --cover-package=deblur
58
59 coveralls_finish:
60 needs: main
61 runs-on: ubuntu-latest
62 steps:
63 - name: Coveralls Finished
64 uses: AndreMiras/coveralls-python-action@develop
65
66 lint:
67 runs-on: ubuntu-latest
68 steps:
69 - name: flake8
70 uses: actions/setup-python@v2
71 with:
72 python-version: ${{ matrix.python-version }}
73 - name: install dependencies
74 run: python -m pip install --upgrade pip
75 - name: Check out repository code
76 uses: actions/checkout@v2
77 - name: lint
78 run: |
79 pip install -q flake8
80 flake8 deblur scripts/deblur setup.py