Skip to content

Github Actions Fix for Master branch (#484) #425

Github Actions Fix for Master branch (#484)

Github Actions Fix for Master branch (#484) #425

Workflow file for this run

name: VRT Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "SETUP: Checkout repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "SETUP: Install Python 3.13"
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: "SETUP: Install dependencies"
run: |
python -m pip install --upgrade pip
pip install -r lib/requirements.txt
- name: "LINT: Test with flake8"
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 ./lib --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 ./lib --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: "VRT: Validate VRT entries and mappings"
run: |
python3 -B lib/validate_vrt.py
- name: "ARTIFACTS: Create artifact json file"
run: |
python3 -B lib/generate_artifacts.py
- name: "ARTIFACTS: Upload artifact"
uses: actions/upload-artifact@v4
with:
name: Secure Code Warrior Links
path: scw_links.json
- name: "ARTIFACTS: Validate links"
run: |
python3 -B lib/validate_artifacts.py