-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clean up test scripts * Generation script clean-up * Made flake job rather than pycodestyle build step * Less aggressive install strategy * Added action for markdown lint * Added .editorconfig action * Removed .editorconfig JSON rule, added SVG rule * Added duplicate icon name test - fixes #4786 * Add docstrings to all the tests * Adds icon tags - fixes #3453 * Removed unnecessary test dependencies * Removed all existing lint errors
- Loading branch information
Showing
20 changed files
with
575 additions
and
339 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"default": true, | ||
"line-length": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,32 +7,55 @@ on: | |
branches: [master] | ||
|
||
jobs: | ||
build: | ||
# Checks relating to the linting of files | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.6 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.6 | ||
|
||
- uses: actions/cache@v2 | ||
- name: Install dependencies | ||
run: pip3 install flake8 | ||
|
||
- name: Check PEP8 compliance | ||
run: find . -name "*.py" | xargs flake8 $1 | ||
|
||
- name: Check mdl compliance | ||
uses: articulate/[email protected] | ||
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: | ||
path: ~/.cache/pip | ||
key: ${{ hashFiles('./.github/workflow-assets/test-requirements.txt') }} | ||
python-version: 3.6 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get -y update | ||
sudo apt-get install -y python3-pip python3-gi gir1.2-gtk-3.0 libgtk-3-dev libgirepository1.0-dev | ||
pip3 install --upgrade --upgrade-strategy eager -r ./.github/workflow-assets/test-requirements.txt | ||
run: pip3 install jsonschema | ||
|
||
- name: Test | ||
- name: Check database | ||
run: | | ||
sh ./tests/pycodestyle.sh | ||
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 |
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
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
Oops, something went wrong.