Skip to content

Commit ec585f8

Browse files
committed
Fixing Github Actions
1 parent 159790e commit ec585f8

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

.github/workflows/validate_artifacts.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Validate Artifacts
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- master
77
release:
88
types:
@@ -15,11 +15,11 @@ jobs:
1515
name: Validate SCW Artifact
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v1
19-
- name: Set up Python 3.11
20-
uses: actions/setup-python@v1
18+
- uses: actions/checkout@v4
19+
- name: Set up Python 3.13
20+
uses: actions/setup-python@v5
2121
with:
22-
python-version: 3.11
22+
python-version: "3.13"
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
python3 -B lib/generate_artifacts.py
3333
- name: Upload artifact
34-
uses: actions/upload-artifact@v1
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: Secure Code Warrior Links
3737
path: scw_links.json

.github/workflows/validate_vrt.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,25 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98

109
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up Python 3.11
13-
uses: actions/setup-python@v1
14-
with:
15-
python-version: 3.11
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install -r lib/requirements.txt
20-
- name: Lint with flake8
21-
run: |
22-
pip install flake8
23-
# stop the build if there are Python syntax errors or undefined names
24-
flake8 ./lib --count --select=E9,F63,F7,F82 --show-source --statistics
25-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
26-
flake8 ./lib --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
27-
- name: Test with unittest
28-
run: |
29-
python3 -B lib/validate_vrt.py
10+
- uses: actions/checkout@v4
11+
- name: Set up Python 3.13
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: "3.13"
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install -r lib/requirements.txt
19+
- name: Lint with flake8
20+
run: |
21+
pip install flake8
22+
# stop the build if there are Python syntax errors or undefined names
23+
flake8 ./lib --count --select=E9,F63,F7,F82 --show-source --statistics
24+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
25+
flake8 ./lib --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
26+
- name: Test with unittest
27+
run: |
28+
python3 -B lib/validate_vrt.py

0 commit comments

Comments
 (0)