-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.18 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
name: Test and lint
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
jobs:
build-and-test-qiime2-tiny-2024-5:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13]
steps:
- uses: actions/checkout@v2
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: gut-to-soil-manuscript-figures-qiime2-tiny-2024.5
environment-file: environments/gut-to-soil-manuscript-figures-qiime2-tiny-2024.5.yml
auto-activate-base: false
- name: Install plugin
shell: bash -l {0}
run: make install
- name: Run tests
shell: bash -l {0}
run: make test
lint:
runs-on: ubuntu-latest
steps:
- name: checkout source
uses: actions/checkout@v3
- 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 https://github.com/qiime2/q2lint/archive/master.zip
pip install -q flake8
- name: run flake8
run: flake8
- name: run q2lint
run: q2lint