Skip to content

Commit

Permalink
fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcaporaso committed May 10, 2024
1 parent 35ca416 commit 5c3b197
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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@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 cookiecutter
pip install -q flake8
- name: build plugin from default template
run: cookiecutter cookiecutter-qiime2-plugin --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: 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: |
flake8
q2lint

0 comments on commit 5c3b197

Please sign in to comment.