Skip to content

Commit 7e410a3

Browse files
committed
updating actions - making things sound better
1 parent 0dca344 commit 7e410a3

File tree

2 files changed

+46
-25
lines changed

2 files changed

+46
-25
lines changed

.github/workflows/lint-format.yml

Lines changed: 45 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
1-
name: Linting and Formating checks
1+
name: Linting and Formatting Checks
22
on:
3-
workflow_call:
3+
workflow_call:
44

5-
jobs:
6-
# Run Pylint and Black formatter
7-
lint_format:
8-
name: Run lint and formatting checks with pylint and black
5+
jobs:
6+
# Run Pylint
7+
pylint:
8+
name: Run pylint checks
99
runs-on: ubuntu-latest
1010
strategy:
11-
matrix:
12-
python-version: ["3.12.6"]
11+
matrix:
12+
python-version: ["3.12.6"]
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: 'Setup Python ${{ matrix.python-version}}'
17-
uses: actions/setup-python@v3
18-
with:
19-
python-version: '${{ matrix.python-version}}'
20-
21-
- name: Install dependencies
22-
run: |
23-
pip install -r requirements.txt
24-
python -m pip install --upgrade pip
25-
26-
- name: Run pylint
27-
run: pylint .
28-
29-
- name: Run black
30-
run: black --check .
15+
- uses: actions/checkout@v4
16+
- name: "Setup Python ${{ matrix.python-version}}"
17+
uses: actions/setup-python@v3
18+
with:
19+
python-version: "${{ matrix.python-version}}"
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install -r requirements.txt
24+
python -m pip install --upgrade pip
25+
26+
- name: Run pylint
27+
run: pylint .
28+
29+
# Run Black
30+
black:
31+
name: Run black formatting checks
32+
runs-on: ubuntu-latest
33+
needs: pylint
34+
strategy:
35+
matrix:
36+
python-version: ["3.12.6"]
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: "Setup Python ${{ matrix.python-version}}"
41+
uses: actions/setup-python@v3
42+
with:
43+
python-version: "${{ matrix.python-version}}"
44+
45+
- name: Install dependencies
46+
run: |
47+
pip install -r requirements.txt
48+
python -m pip install --upgrade pip
49+
50+
- name: Run black
51+
run: black --check .

.github/workflows/unit-sec-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
jobs:
66
# Run unit test cases for the Docker image
7-
testing_phase:
7+
unit_test:
88
name: Run unit test
99
runs-on: ubuntu-latest
1010
needs: ['trivy_scans', 'owasp_zap_scan'] # Ensure this job runs after the security scans

0 commit comments

Comments
 (0)