|
7 | 7 | runs-on: ubuntu-latest |
8 | 8 |
|
9 | 9 | steps: |
10 | | - - uses: actions/checkout@v4 |
| 10 | + - name: "SETUP: Checkout repository" |
| 11 | + uses: actions/checkout@v4 |
11 | 12 | with: |
12 | 13 | fetch-depth: 0 |
13 | 14 |
|
14 | | - - name: "[SETUP] Install Python 3.13" |
| 15 | + - name: "SETUP: Install Python 3.13" |
15 | 16 | uses: actions/setup-python@v5 |
16 | 17 | with: |
17 | 18 | python-version: "3.13" |
18 | 19 |
|
19 | | - - name: "[SETUP] Install dependencies" |
| 20 | + - name: "SETUP: Install dependencies" |
20 | 21 | run: | |
21 | 22 | python -m pip install --upgrade pip |
22 | 23 | pip install -r lib/requirements.txt |
23 | 24 |
|
24 | | - - name: "[LINT] Test with flake8" |
| 25 | + - name: "LINT: Test with flake8" |
25 | 26 | run: | |
26 | 27 | pip install flake8 |
27 | 28 | # stop the build if there are Python syntax errors or undefined names |
28 | 29 | flake8 ./lib --count --select=E9,F63,F7,F82 --show-source --statistics |
29 | 30 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
30 | 31 | flake8 ./lib --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
31 | 32 |
|
32 | | - - name: "[VRT] Validate VRT entries and mappings" |
| 33 | + - name: "VRT: Validate VRT entries and mappings" |
33 | 34 | run: | |
34 | 35 | python3 -B lib/validate_vrt.py |
35 | 36 |
|
36 | | - - name: "[ARTIFACTS] Create artifact json file" |
| 37 | + - name: "ARTIFACTS: Create artifact json file" |
37 | 38 | run: | |
38 | 39 | python3 -B lib/generate_artifacts.py |
39 | 40 |
|
40 | | - - name: "[ARTIFACTS] Upload artifact" |
| 41 | + - name: "ARTIFACTS: Upload artifact" |
41 | 42 | uses: actions/upload-artifact@v4 |
42 | 43 | with: |
43 | 44 | name: Secure Code Warrior Links |
44 | 45 | path: scw_links.json |
45 | 46 |
|
46 | | - - name: "[ARTIFACTS] Validate links" |
| 47 | + - name: "ARTIFACTS: Validate links" |
47 | 48 | run: | |
48 | 49 | python3 -B lib/validate_artifacts.py |
0 commit comments