mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-21 04:56:24 +02:00
Add checking with Black.
This commit is contained in:
parent
539b5879e5
commit
6fce3b3984
1 changed files with 9 additions and 6 deletions
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
|
@ -18,23 +18,26 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest flake8
|
||||
pip install pytest flake8 black
|
||||
pip install -r requirements.txt
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest -v
|
||||
- name: Lint with flake8
|
||||
- name: Lint with Flake8
|
||||
run: |
|
||||
flake8 --max-line-length=80 --ignore=E203,W503
|
||||
- name: Render test
|
||||
- name: Check code style with Black
|
||||
run: |
|
||||
black -l 80 --check roentgen test roentgen.py
|
||||
- name: Test render
|
||||
run: |
|
||||
python roentgen.py render -b 37.415,55.753,37.416,55.754 --cache test/data
|
||||
- name: Icon generation test
|
||||
- name: Test icon generation
|
||||
run: |
|
||||
python roentgen.py icons
|
||||
- name: MapCSS 0.2 generation test
|
||||
- name: Test MapCSS 0.2 generation
|
||||
run: |
|
||||
python roentgen.py mapcss
|
||||
- name: Element test
|
||||
- name: Test element generation
|
||||
run: |
|
||||
python roentgen.py element --node amenity=bench,material=wood
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue