-
Notifications
You must be signed in to change notification settings - Fork 4
119 lines (102 loc) · 2.82 KB
/
dev-tests.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: dev-tests
on:
push:
branches:
- '**'
- '!main'
- '!master'
tags-ignore:
- '*'
pull_request:
branches:
- '**'
- '!main'
- '!master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12'] #'3.7', '3.8', '3.9', '3.10', '3.11',
steps:
- uses: actions/checkout@v3
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: xpresspipe
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libssl-dev
- name: Install dependencies
shell: bash -l {0}
run: |
conda clean --all
conda env update --file requirements.yml --name xpresspipe
conda activate xpresspipe
pip install .
pip install codecov flake8
- name: Run test_arguments.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_arguments.py
- name: Run test_utils.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_utils.py
- name: Run test_bam.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_bam.py
- name: Run test_modifyGTF.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_modifyGTF.py
- name: Run test_truncateGTF.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_truncateGTF.py
- name: Run test_metagene.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_metagene.py
- name: Run test_periodicity.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_periodicity.py
- name: Run test_complexity.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_complexity.py
- name: Run test_rrnaProbe.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_rrnaProbe.py
- name: Run test_help.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_help.py
- name: Run test_pipelines.py
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage run -a tests/test_pipelines.py
- name: Generate coverage report
shell: bash -l {0}
run: |
conda activate xpresspipe
coverage report
bash <(curl -s https://codecov.io/bash) -cF python