-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (40 loc) · 1.64 KB
/
standalone.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
# Based on
# https://github.com/fedarko/pyfastg/blob/master/.github/workflows/main.yml
name: Standalone CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
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 [email protected] 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