-
Notifications
You must be signed in to change notification settings - Fork 58
61 lines (51 loc) · 1.39 KB
/
ci.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
name: ci
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2
- name: set up python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: install dependencies
run: python -m pip install --upgrade pip
- name: lint
run: |
pip install -q flake8
flake8
verify:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v2
- name: install QIIME 2 amplicon distro
run: |
envFile=qiime2-amplicon-ubuntu-latest-conda.yml
wget https://raw.githubusercontent.com/qiime2/distributions/dev/2024.5/amplicon/released/$envFile
conda env create -q -p ./test-env --file $envFile
- name: install conda dependencies
shell: bash -l {0}
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda install -p ./test-env -q pip
- name: install pip dependencies
shell: bash -l {0}
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate ./test-env
pip install -r requirements.txt
- name: build docs
shell: bash -l {0}
env:
SPHINXOPTS: -q
run: |
source "$CONDA/etc/profile.d/conda.sh"
conda activate ./test-env
make clean && make dummy && make preview