forked from cupy/cupy
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 952 Bytes
/
pretest.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
on: [push, pull_request]
jobs:
pretest:
runs-on: ubuntu-18.04
env:
CUPY_CI: GitHub
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: install
run: |
pip install -U pip wheel
pip install cython
READTHEDOCS=True pip install -U -e .[stylecheck]
- name: flake8
run: |
flake8
flake8 --config=.flake8.cython
- name: autopep8
run: |
autopep8 -r . --diff | tee check_autopep8
test ! -s check_autopep8
- name: doc build
run: |
# Test to detect invalid escape sequences in docstrings (#1619)
python -Werror::DeprecationWarning -m compileall -f -q cupy cupyx examples tests docs
pushd docs
pip install -r requirements.txt
SPHINXOPTS=-W make html
popd