Skip to content

NPA-3895: Added GitHub action to run schema validation #3

NPA-3895: Added GitHub action to run schema validation

NPA-3895: Added GitHub action to run schema validation #3

name: Open API Validate
"on":
pull_request:
branches: [master]
permissions:
contents: read
jobs:
GET_Consent:
name: GET Consent test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Poetry
shell: bash
run: |
pipx install poetry==1.8.5
- name: Install Script Packages with Poetry
shell: bash
run: |
poetry install
- name: Run Python script for all files
run: |
cd scripts
for file in ../specification/examples/response/GET_Consent/*; do
python validate_schema.py Consent "$file"
done