forked from jodyphelan/TBProfiler
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.45 KB
/
testing.yml
File metadata and controls
53 lines (43 loc) · 1.45 KB
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI testing
on:
pull_request:
branches: [ "master", "dev" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge,bioconda
channel-priority: true
- name: install dependancies
run: |
wget https://raw.githubusercontent.com/jodyphelan/TBProfiler/dev/conda/linux-latest.txt
conda create --name test --file linux-latest.txt
- name: Install dependencies
run: |
conda activate test
pip install --force-reinstall git+https://github.com/jodyphelan/pathogen-profiler.git@dev
pip install --force-reinstall .
pip install semver
- name: remove redundant snpeff files
run: |
rm -r /home/runner/miniconda3/envs/test/share/snpeff-5.2-1
- name: Run tests
run: |
cd db
python ../tb-profiler load_library tbdb
cd ../tests
mamba install pytest pandas importlib_resources -y
pytest -x . --log-level=INFO
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}