BLD/REL: Pin pandas to ">= 1, < 2" #36
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
# 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) | |
run: pip install "black >= 22.3.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) | |
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 |