mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-07 22:26:38 +02:00
Issue #88: add tests for Python 3.8.
This commit is contained in:
parent
4c955c79b8
commit
10608a7625
2 changed files with 33 additions and 1 deletions
32
.github/workflows/test_3.8.yml
vendored
Normal file
32
.github/workflows/test_3.8.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Test for Python 3.8
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [python3.8]
|
||||||
|
pull_request:
|
||||||
|
branches: [python3.8]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- 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
|
|
@ -13,5 +13,5 @@ echo "Lint with Flake8..."
|
||||||
flake8 \
|
flake8 \
|
||||||
--max-line-length=80 \
|
--max-line-length=80 \
|
||||||
--ignore=E203,W503,ANN002,ANN003,ANN101,ANN102 \
|
--ignore=E203,W503,ANN002,ANN003,ANN101,ANN102 \
|
||||||
--exclude=work,precommit.py,tests/test_road.py \
|
--exclude=work,python3.8 \
|
||||||
|| { echo "FAIL"; exit 1; }
|
|| { echo "FAIL"; exit 1; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue