Skip to content

[105] na fields

[105] na fields #56

name: Geocoding location-service Python CI
on:
push:
branches: [main]
paths:
- '.github/workflows/geocoding-service-python.yml'
- 'geocoding/location-service/**'
pull_request:
paths:
- '.github/workflows/geocoding-service-python.yml'
- 'geocoding/location-service/**'
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: geocoding/location-service
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run python tests
run: ./test_docker.sh