improve pretest
@@ -9,33 +9,34 @@ jobs:
CUPY_CI: GitHub
steps:
- - uses: actions/checkout@v2
+ - name: Checkout
+ uses: actions/checkout@v2
with:
submodules: recursive
- - name: setup python
+ - name: Setup Python
uses: actions/setup-python@v2
with:
# cupyx.array_api uses Python 3.8 syntaxes
python-version: '3.8'
- - name: install
+ - name: Build
run: |
pip install -U pip wheel
pip install cython
READTHEDOCS=True pip install -U -e .[stylecheck]
- - name: flake8
+ - name: Coding Style (flake8)
run: |
flake8
flake8 --config=.flake8.cython
- - name: autopep8
+ - name: Coding Style (autopep8)
run: |
autopep8 -r . --diff | tee check_autopep8
test ! -s check_autopep8
- - name: doc build
+ - name: Test - Docs Build
run: |
# Test to detect invalid escape sequences in docstrings (#1619)
python -Werror::DeprecationWarning -m compileall -f -q cupy cupyx examples tests docs
@@ -49,4 +50,11 @@ jobs:
pip install mypy
pushd install
mypy cupy_builder
+
+ - name: Test - CI Generator
+ run: |
+ pip install PyYAML types-PyYAML mypy
+ pushd .pfnci
+ ./generate.py --matrix matrix.yaml --schema schema.yaml --dry-run
+ mypy generate.py
popd
