Skip to content

bump ocd version

bump ocd version #95

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:9.6-2.5
env:
POSTGRES_DB: django_councilmatic
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: System dependencies
run: |
sudo apt-get update
sudo apt-get install gdal-bin
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
pip install -e .
- name: Lint with flake8
run: |
flake8 ./councilmatic_core/*.py
- name: Test with pytest
run: |
pytest -sv
- name: Build and publish
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip install twine wheel
pip wheel -w dist --no-deps .
python setup.py sdist
twine upload dist/*
continue-on-error: true