File tree Expand file tree Collapse file tree 2 files changed +32
-8
lines changed
Expand file tree Collapse file tree 2 files changed +32
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Check YAML file syntax
2+ on :
3+ push :
4+ branches-ignore : [ devc ]
5+ paths :
6+ - ' **.yml'
7+
8+ pull_request :
9+ paths :
10+ - ' **.yml'
11+
12+ jobs :
13+ tests :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Set up Python
18+ uses : actions/setup-python@v5
19+ with :
20+ python-version : 3.13
21+ - name : Install yamllint
22+ run : |
23+ python -m pip install yamllint
24+ - name : Lint YAML files
25+ run : |
26+ set -e
27+ shopt -s extglob
28+ shopt -s globstar
29+ yamllint --no-warnings netsim/*.yml netsim/**/*.yml tests/**/*.yml
Original file line number Diff line number Diff line change 55 branches-ignore : [ devc ]
66 paths :
77 - ' **.py'
8- - ' **.yaml'
8+ - ' **.yml'
9+
910 pull_request :
1011 paths :
1112 - ' **.py'
12- - ' **.yaml '
13+ - ' **.yml '
1314
1415jobs :
1516 tests :
2829 run : |
2930 python -m pip install --upgrade pip
3031 pip install -r requirements.txt -r requirements-dev.txt
31- - name : Lint YAML files
32- run : |
33- set -e
34- shopt -s extglob
35- shopt -s globstar
36- yamllint --no-warnings netsim/*.yml netsim/**/*.yml tests/**/*.yml
3732 - name : Run Mypy
3833 run : |
3934 set -e
You can’t perform that action at this time.
0 commit comments