-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 1.01 KB
/
self-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: Self Test
'on':
pull_request:
branches: ['main']
jobs:
runValidation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run PyTest(s)
run: |
pip install -r requirements.txt
pip install -r requirements-test.txt
pytest test/ -rxXs
- name: Run Action (valid files)
uses: ./
with:
json-schema-file: test/schema/json_schema.json
yaml-json-file-dir: test/YAMLs/valid.json,test/JSONs/valid.json
- name: Run Action (empty files valid)
uses: ./
with:
json-schema-file: test/schema/json_schema.json
yaml-json-file-dir: test/emptyJSONs,test/emptyYAMLSs
- name: Run Action (check mapping)
uses: ./
with:
json-schema-file: test/schema/json_schema.json
yaml-json-file-dir: test/emptyJSONs,test/emptyYAMLSs
schema-mapping: 'test/emptyJSONs:test/schema/json_schema.json,test/emptyYAMLSs:test/schema/json_schema.json'