File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Sanity Check
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ make_check :
7
+ name : check for issues in the collection_scripts
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ python-version : ["3.9", "3.11"]
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Setup python
15
+ uses : actions/setup-python@v4
16
+ with :
17
+ python-version : ${{ matrix.python-version }}
18
+ - name : Install dependencies
19
+ run : sudo apt-get install -y make
20
+ - name : Install tox and any other packages
21
+ run : pip install tox
22
+ - name : Run ShellCheck
23
+ run : make check
24
+ - name : Run PyTest
25
+ run : make pytest
Original file line number Diff line number Diff line change 9
9
build : check-image podman-build podman-push # # Build and push the must-gather image
10
10
11
11
check : # # Run sanity check against the script collection
12
- shellcheck collection-scripts/*
12
+ shellcheck -e SC2016 -e SC2006 -e SC2140 -e SC2086 collection-scripts/*
13
13
14
14
pytest : # # Run sanity check against python scripts in pydir
15
15
tox -c pyscripts/tox.ini
You can’t perform that action at this time.
0 commit comments