lint #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and lint | |
on: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["main"] | |
jobs: | |
build-and-test-qiime2-amplicon-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: q2-qsip2-qiime2-amplicon-2024.5 | |
environment-file: environments/q2-qsip2-qiime2-amplicon-2024.5.yml | |
auto-activate-base: false | |
- name: Install plugin | |
shell: bash -l {0} | |
run: make install | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
- 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 |