Skip to content

Commit 1cc0b96

Browse files
NPA-4511: Added post consent to validate workflow
1 parent 57ac92a commit 1cc0b96

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/openapi-validate.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,33 @@ jobs:
2929
3030
- name: Run Python script for all files
3131
run: |
32-
make schema-consent
32+
make schema-get-consent
33+
34+
POST_Consent:
35+
name: POST Consent test
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
41+
- name: Set up Python
42+
uses: actions/setup-python@v5
43+
with:
44+
python-version: 3.9
45+
46+
- name: Install Poetry
47+
shell: bash
48+
run: |
49+
pipx install poetry==1.8.5
50+
51+
- name: Install Script Packages with Poetry
52+
shell: bash
53+
run: |
54+
poetry install --all-extras
55+
56+
- name: Run Python script for all files
57+
run: |
58+
make schema-post-consent
3359
3460
GET_RelatedPerson:
3561
name: GET Related Person test
@@ -83,7 +109,6 @@ jobs:
83109
run: |
84110
make schema-questionnaire
85111
86-
87112
Errors:
88113
name: Error schema test
89114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)