Skip to content

Commit 84e8aa3

Browse files
authored
Move yamllint into a separate GH workflow (#2493)
1 parent 501172b commit 84e8aa3

File tree

2 files changed

+32
-8
lines changed

2 files changed

+32
-8
lines changed

.github/workflows/t-yamllint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

.github/workflows/tests.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
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

1415
jobs:
1516
tests:
@@ -28,12 +29,6 @@ jobs:
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

0 commit comments

Comments
 (0)