-
Notifications
You must be signed in to change notification settings - Fork 147
61 lines (48 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
# Checks relating to the linting of files
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: pip3 install flake8
- name: Check PEP8 compliance
run: find . -name "*.py" | xargs flake8 $1
- name: Check mdl compliance
uses: articulate/actions-markdownlint@v1.1.0
with:
config: .github/workflows/markdownlint-config.json
ignore: LICENSE
- name: Check .editorconfig compliance
uses: editorconfig-checker/action-editorconfig-checker@v1
# Checks relating to the database
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: pip3 install jsonschema
- name: Check database
run: |
python3 ./tests/schema.py
python3 ./tests/db_entry.py
python3 ./tests/icons_entry.py
python3 ./tests/ordered_db.py
python3 ./tests/icon_cache.py
python3 ./tests/duplicates.py