map-machine/.github/workflows/test.yml
Sergey Vartanov c193901e15 Issue #83: display transition as connection.
Display road part with placement=transition as connection between
two roads.
2021-11-10 02:28:04 +03:00

55 lines
1.4 KiB
YAML

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black flake8 pytest
pip install -r requirements.txt
pip install .
- name: Check code style with Black
run: |
black -l 80 --check map_machine tests
- name: Lint with Flake8
run: |
flake8 --max-line-length=80 --ignore=E203,W503
- name: Test with pytest
run: |
pytest -v
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black flake8 pytest
pip install -r requirements.txt
pip install .
- name: Check code style with Black
run: |
black -l 80 --check map_machine setup.py tests
- name: Lint with Flake8
run: |
flake8 --max-line-length=80 --ignore=E203,W503
- name: Test render
run: |
map-machine render -b 10.000,20.000,10.001,20.001 --cache tests/data