-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.22 KB
/
run_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
name: Run tests
on: [push, pull_request]
jobs:
run-tests:
runs-on: ubuntu-20.04
env:
NXF_VER: 21.04.1
NXF_ANSI_LOG: false
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Cache singularity images
uses: actions/cache@v2
with:
path: work/singularity
key: singularity-${{ hashFiles('config/nextflow_config/singularity.config') }}
restore-keys: singularity-
- name: Install Singularity
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: 3.8.3
- name: Install Nextflow
env:
CAPSULE_LOG: none
run: |
curl -s https://get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Make Nextflow binary executable
run: chmod +x /usr/local/bin/nextflow
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.9
architecture: x64
- name: Install test requirements
run: pip install -r requirements-dev.txt
- name: Run tests
run: pytest tests
- name: Run Black code formatting check
run: black --check .