43 lines (34 loc) · 1.04 KB
/
ci-linux.yaml
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
name: Linux CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest]
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install numcodecs
run: |
python -m pip install -U pip -r requirements_test.txt -r requirements.txt
python -m pip install -v -e .
- name: List installed packages
run: python -m pip list
- name: Run tests
run: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs
- name: Flake8
run: flake8 numcodecs
- name: Build Docs
run: |
pip install -r requirements_rtfd.txt
cd docs
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html