Support default type schemas with no extras #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '2.7' | |
- name: Install requirements | |
run: pip install flake8 | |
- name: Check syntax | |
run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude ckan | |
test: | |
runs-on: ubuntu-18.04 | |
needs: lint | |
strategy: | |
fail-fast: false | |
services: | |
postgresql: | |
image: postgres:11-bullseye | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
ckan-solr: | |
image: ckan/ckan-solr-dev:2.7 | |
ports: | |
- 8983:8983 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '2.7' | |
architecture: x64 | |
- name: Install nosetests | |
run: | | |
python -m pip install --upgrade pip | |
pip install nose | |
- name: Setup CKAN | |
env: | |
PGPASSWORD: postgres | |
run: | | |
bash bin/setup-ckan.bash | |
- name: Test with nosetests | |
run: | | |
nosetests --nologcapture --with-pylons=subdir/test.ini --with-coverage --cover-package=ckanext.mapactiongeorss --cover-inclusive --cover-erase --cover-tests ckanext/mapactiongeorss/tests | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel: true | |
flag-name: Python 2.7 Unit Test | |
coveralls_finish: | |
needs: test | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Coveralls Finished | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel-finished: true |