-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (56 loc) · 1.78 KB
/
main.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Sequence Processing Pipeline CI
# Controls when the action will run.
on:
# Triggers the workflow on pull request and push events, only on the master
# branch
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
# name of job
build:
# The type of runner that the job will run on (available options are window/macOS/linux)
runs-on: ubuntu-latest
# we can add more versions of node.js in the future
strategy:
matrix:
python-version: ['3.9']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# first grab branch from github
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: tester
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge, bioconda
auto-update-conda: true
- name: Main install
shell: bash -l {0}
run: |
pip install -e ".[all]"
- name: Python linter
shell: bash -l {0}
run: flake8 sequence_processing_pipeline/ setup.py
- name: Run tests and measure coverage
shell: bash -l {0}
run: |
nosetests --with-coverage --cover-inclusive --cover-package sequence_processing_pipeline
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
coveralls_finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true