-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1022 Bytes
/
build-test.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
# This workflow will build and test LongReadSum
name: build tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download assets
uses: dsaltares/[email protected]
with:
repo: 'WGLab/LongReadSum'
version: 'tags/v0.1.0'
file: 'SampleData.zip'
- name: Unzip assets
shell: bash --login {0}
run: unzip SampleData.zip
- name: Set up conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: longreadsum
environment-file: environment.yml
python-version: 3.9
auto-activate-base: false
- name: Build LongReadSum
shell: bash --login {0} # --login enables PATH variable access
run: |
make
- name: Run tests
shell: bash --login {0}
run: |
mkdir output # Unit test output folder
python -m pytest