Skip to content

BLD: only do python stylechecking if py vsn > 3.6 #38

BLD: only do python stylechecking if py vsn > 3.6

BLD: only do python stylechecking if py vsn > 3.6 #38

Workflow file for this run

# Based on
# https://github.com/fedarko/pyfastg/blob/master/.github/workflows/main.yml
name: Standalone CI
on: [push, pull_request]
jobs:
build:
# ubuntu-latest doesn't support python 3.6 -- see
# https://github.com/actions/setup-python/issues/544. Ideally we'd do
# something fancy to test on ubuntu-latest for all python versions > 3.6
# (and then test on ubuntu-20.04 for just python 3.6), but this is the path
# of least resistance.
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- name: Check out code
uses: actions/checkout@v3
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Cython and NumPy
run: pip install cython "numpy >= 1.12.0"
- name: Install Qurro (and its pip dependencies)
run: pip install -e .[dev]
- name: Install Black, also (no QIIME 2 to worry about conflicts with)
if: ${{ matrix.python-version }} > 3.6
run: pip install "black >= 23.0.0"
- name: Set up Node.js
uses: actions/setup-node@v1
- name: Install Qurro's Node.js development dependencies
run: npm install -g mocha-headless-chrome nyc prettier@2.0.5 jshint
- name: Run tests
run: |
make pytest_standalone
make jstest
- name: Lint and stylecheck (including using Black to check Python code)
if: ${{ matrix.python-version }} > 3.6
run: make stylecheck
# NOTE: For now, we only submit coverage reports from the QIIME 2 CI,
# since the tests that that CI runs are a superset of those ran by this
# "standalone" CI. (Also, Codecov wasn't merging them, which caused
# coverage to be underreported.)
# - name: Upload code coverage information to Codecov
# uses: codecov/codecov-action@v2