Skip to content

Commit 6f85354

Browse files
committed
Try to run velin in CI
1 parent c5aa904 commit 6f85354

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ jobs:
5353
pip freeze
5454
pip check
5555
- name: Run the tests
56-
timeout-minutes: 30
56+
timeout-minutes: 10
5757
run: |
5858
pytest ipykernel -vv -s --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10
5959
- name: Build the docs
60+
if: ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.9'}}
6061
run: |
6162
cd docs
6263
pip install -r requirements.txt
@@ -69,3 +70,43 @@ jobs:
6970
- name: Coverage
7071
run: |
7172
codecov
73+
check_docstrings:
74+
runs-on: ${{ matrix.os }}-latest
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
os: [ubuntu]
79+
python-version: [ '3.9' ]
80+
exclude:
81+
- os: windows
82+
python-version: pypy3
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v1
86+
- name: Install Python ${{ matrix.python-version }}
87+
uses: actions/setup-python@v1
88+
with:
89+
python-version: ${{ matrix.python-version }}
90+
architecture: 'x64'
91+
- name: Upgrade packaging dependencies
92+
run: |
93+
pip install --upgrade pip setuptools wheel --user
94+
- name: Get pip cache dir
95+
id: pip-cache
96+
run: |
97+
echo "::set-output name=dir::$(pip cache dir)"
98+
- name: Cache pip
99+
uses: actions/cache@v1
100+
with:
101+
path: ${{ steps.pip-cache.outputs.dir }}
102+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
103+
restore-keys: |
104+
${{ runner.os }}-pip-${{ matrix.python-version }}-
105+
${{ runner.os }}-pip-
106+
- name: Install the Python dependencies
107+
run: |
108+
pip install --pre --upgrade --upgrade-strategy=eager .
109+
pip install velin
110+
- name: Check Docstrings
111+
run: |
112+
velin . --check --compact

0 commit comments

Comments
 (0)