forked from greearb/lanforge-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.5 KB
/
ci.yml
File metadata and controls
52 lines (44 loc) · 1.5 KB
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
43
44
45
46
47
48
49
50
51
52
name: CI
on: [push, pull_request]
# Lint code using flake8 and run unit tests using pytest
jobs:
lint:
# Tie runner to Ubuntu 22.04 LTS, as it still supports Python 3.7
# Minimum Python version on Ubuntu 24.04 LTS is Python 3.9.
runs-on: ubuntu-22.04
name: Run Linter
steps:
- name: Check out source repository
uses: actions/checkout@v4
# Cached for subsequent steps, see:
# https://github.com/actions/setup-python#caching-packages-dependencies
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.7"
cache: "pip"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
plugins: "flake8-bugbear"
help-check:
# Tie runner to Ubuntu 22.04 LTS, as it still supports Python 3.7
# Minimum Python version on Ubuntu 24.04 LTS is Python 3.9.
runs-on: ubuntu-22.04
name: Help and Help Summary Check
steps:
- name: Check out source repository
uses: actions/checkout@v4
# Cached for subsequent steps, see:
# https://github.com/actions/setup-python#caching-packages-dependencies
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.7"
cache: "pip"
- name: Install all py-scripts dependencies
run: python py-scripts/update_dependencies.py
- name: Run help check
run: |
cd py-scripts
python tools/lf_help_check.py