Icons for exercise-timer #1977
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |