Skip to content

Commit c75bb1a

Browse files
committed
Add CI Test for standard capture group naming
1 parent 7af9f67 commit c75bb1a

File tree

6 files changed

+400
-89
lines changed

6 files changed

+400
-89
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ jobs:
9696
- name: "Set up Docker Buildx"
9797
id: "buildx"
9898
uses: "docker/setup-buildx-action@v2"
99+
- name: "Get changed files"
100+
id: "changed-files"
101+
uses: "tj-actions/changed-files@v43"
99102
- name: "Build"
100103
uses: "docker/build-push-action@v4"
101104
with:
@@ -108,6 +111,7 @@ jobs:
108111
cache-to: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
109112
build-args: |
110113
PYTHON_VER=${{ env.PYTHON_VER }}
114+
ALL_CHANGED_FILES=${{ steps.changed-files.outputs.all_changed_files }}
111115
needs:
112116
- "bandit"
113117
- "pydocstyle"
@@ -181,8 +185,12 @@ jobs:
181185
cache-to: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
182186
build-args: |
183187
PYTHON_VER=${{ env.PYTHON_VER }}
188+
ALL_CHANGED_FILES=${{ steps.changed-files.outputs.all_changed_files }}
184189
- name: "Debug: Show docker images"
185190
run: "docker image ls"
191+
- name: "Get changed files"
192+
id: "changed-files"
193+
uses: "tj-actions/changed-files@v43"
186194
- name: "Run Tests"
187195
run: "poetry run invoke pytest"
188196
needs:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ARG PYTHON_VER
2+
ARG ALL_CHANGED_FILES=0
23

34
FROM python:${PYTHON_VER}-slim
45

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Value NAME (.*)
2+
Value MAC_ADDRESS (.*)
3+
Value SERIAL (.*)
4+
Value IP_ADDR (.*)
5+
6+
Start
7+
^NAME:\s+"${NAME}",\s+DESCR:\s+"${DESCR}"
8+
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
9+
^PID:\s+,.*VID:\s+${VID},.*SN: -> Record
10+
^PID:\s+${PID}.*,.*VID:\s+${VID},.*SN: -> Record
11+
^PID:\s+,.*VID:\s+${VID},.*SN:\s+${SN} -> Record
12+
^PID:\s+${PID}.*,.*VID:\s+${VID}.*
13+
^PID:\s+,.*VID:\s+${VID}.*
14+
^.*SN:\s+${SN} -> Record
15+
^.*SN: -> Record
16+
# Capture time-stamp if vty line has command time-stamping turned on
17+
^Load\s+for\s+
18+
^Time\s+source\s+is

0 commit comments

Comments
 (0)