Add spdx3-validate to examples validation workflow #634
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
paths: | |
- 'examples/**/*.json' | |
- 'docs/annexes/*.md' | |
push: | |
paths: | |
- 'examples/**/*.json' | |
- 'docs/annexes/*.md' | |
jobs: | |
validate-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout spdx-spec | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 #v4.2.1 | |
- name: Set up specific Python version | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 #v5.2.0 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install check-jsonschema==0.29.4 pyshacl==0.28.1 spdx3-validate==0.0.4 | |
python3 -m pip install check-jsonschema==0.29.4 pyshacl==0.27.0 | |
- name: Install dependencies | |
run: | | |
sudo apt install -y gawk | |
- name: Check examples | |
run: | | |
./bin/check-examples.sh |