linz / gazetteer

New Zealand Gazetteer of official place names
http://www.linz.govt.nz/regulatory/place-names/find-name/new-zealand-gazetteer-official-geographic-names/new-zealand-gazetteer-search-place-names#zoom=0&lat=-41.14127&lon=172.5&layers=BTTT
Other
2 stars 2 forks source link

Set Up Github Actions #25

Closed SPlanzer closed 4 years ago

SPlanzer commented 4 years ago

GitHub Actions should be set up to ensure best source code management and coding practices are followed.

Done

The issues is considered complete once: Github Actions are

SPlanzer commented 4 years ago

This is to be deferred until development starts.

looking a simple github action job below there is nothing to run i.e. all linting and formatting will fail and there are no tests to execute.

This is to be closed and actions will be built as linting, formatting and testing is addressed

name: Build

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Use Python 3.7
        uses: actions/setup-python@v1
        with:
          python-version: 3.7

      - name: Install
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt
          pip install -r requirements-dev.txt

      - name: Format
        run: |
          black src/ --check --diff
          black tests/ --check --diff

      - name: Lint
        run: |
          pylint src/
          pylint tests/

      - name: Test
        run: python -m pytest

      - name: Coverage
        run: |
          pytest --cov
SPlanzer commented 4 years ago

The below are all related to GitHub action jobs that will need to be integrated