-
Notifications
You must be signed in to change notification settings - Fork 45
42 lines (36 loc) · 1.06 KB
/
npdocval.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
name: Validate numpy docstrings
on:
pull_request:
push:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 */72 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
environment:
name: test
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
os: [ubuntu-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v2.5.0
- name: set up python '3.10'
uses: actions/setup-python@v4.3.0
with:
python-version: '3.10'
- name: Install dependencies
run: |
export PDPIPE__LOAD_STAGE_ATTRIBUTES=False
python -m pip install --upgrade pip
python -m pip install --only-binary=all numpy
python -m pip install numpydoc
python -m pip install -e ".[test]"
- name: Validate numpy docstrings
run: |
export PDPIPE__LOAD_STAGE_ATTRIBUTES=False
export PDPIPE__LOAD_CORE_AS_MODULE=True
python dev/scripts/numpydoc_validate.py