-
Notifications
You must be signed in to change notification settings - Fork 186
63 lines (53 loc) · 1.49 KB
/
main.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
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Sphinx environment
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
pip install -r docs/requirements.txt
- name: Test doc generation
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
cd docs
make html
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Setup mamba
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: snakemake
channels: "conda-forge, bioconda"
miniforge-variant: Mambaforge
miniforge-version: latest
- name: Setup Snakemake environment
shell: bash -el {0}
run: |
conda config --set channel_priority strict
mamba install -n snakemake -y snakemake-minimal snakemake-storage-plugin-http pytest pandas
- name: Fetch master
if: github.ref != 'refs/heads/master'
run: |
git fetch origin master
- name: Run tests
shell: bash -el {0}
env:
DIFF_MASTER: ${{ github.event_name == 'pull_request' }}
DIFF_LAST_COMMIT: ${{ github.ref == 'refs/heads/master' }}
run: |
# run tests
pytest test.py -v