-
-
Notifications
You must be signed in to change notification settings - Fork 39
41 lines (34 loc) · 1 KB
/
test.yml
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
34
35
36
37
38
39
40
41
name: Validate manifests
on: [pull_request, push]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout gbdev/database
uses: actions/checkout@v2
with:
repository: gbdev/database
path: folder/repo
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r folder/repo/tests/requirements.txt
- name: Validate manifests against the JSON schema
working-directory: folder/
run: |
cd repo/tests
python3 validate_schema.py
- name: Check if referenced files in the manifests exist
working-directory: folder/
run: |
cd repo/tests
python3 check_files.py
- name: Look for duplicates
working-directory: folder/
run: |
cd repo/scripts
python3 dupe_finder.py