forked from ni/grpc-device
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 826 Bytes
/
validate_python.yml
File metadata and controls
34 lines (27 loc) · 826 Bytes
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
name: Validate Python Code
on:
workflow_call:
workflow_dispatch:
jobs:
validate:
name: Validate Python Code
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Setup python3
uses: actions/setup-python@v2
with:
python-version: '3.7.x'
- name: Install build dependencies
run: python -m pip install -r python_build_requirements.txt
- name: Validate python style with ni-python-styleguide
run: |
ni-python-styleguide lint source/codegen/*.py examples
- name: Install poetry for validate_examples.py
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.5
- name: Validate examples (except DAQmx)
run: |
python source/codegen/validate_examples.py -e "nidaqmx"