-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (57 loc) · 1.58 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
62
63
64
65
66
67
68
name: Test build
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
jobs:
build-q2-hello-world:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13]
steps:
- name: checkout source
uses: actions/checkout@v4
- name: set up python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -q cookiecutter
pip install -q flake8
pip install -q https://github.com/qiime2/q2lint/archive/master.zip
- name: build plugin from default template
run: |
git config --global user.email "[email protected]"
git config --global user.name "A QIIME 2 Plugin Developer"
cookiecutter . --no-input
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
# to-do: remove hard-coding of version
activate-environment: q2-hello-world-qiime2-tiny-2024.5
environment-file: q2-hello-world/environments/q2-hello-world-qiime2-tiny-2024.5.yml
auto-activate-base: false
- name: Install plugin
shell: bash -l {0}
run: |
cd q2-hello-world
make install
- name: Call --help on plugin
shell: bash -l {0}
run: |
qiime hello-world --help
- name: Test plugin
shell: bash -l {0}
run: |
cd q2-hello-world
make test
- name: Lint plugin
shell: bash -l {0}
run: |
cd q2-hello-world
flake8
q2lint