-
Notifications
You must be signed in to change notification settings - Fork 4
122 lines (104 loc) · 3.26 KB
/
main-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
120
121
122
name: Main Branch
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
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 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
- 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
- name: Generate conda version report
shell: bash -l {0}
run: |
conda activate xpresspipe
conda list --explicit > conda-spec-file.txt
cat conda-spec-file.txt
- name: Generate R packages version report
shell: bash -l {0}
run: |
conda activate xpresspipe
Rscript -e 'write.table(as.data.frame(installed.packages()), "R-packages-version-report.txt", sep="\t")'
cat R-packages-version-report.txt