Skip to content

update README, GitHub issue #122 #361

update README, GitHub issue #122

update README, GitHub issue #122 #361

Workflow file for this run

name: CI
on:
push:
pull_request:
branches:
- master
jobs:
code_quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
timeout-minutes: 2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
timeout-minutes: 5
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
timeout-minutes: 5
- name: Lint with flake8
run: |
flake8
timeout-minutes: 5
test:
runs-on: ubuntu-latest
needs: code_quality
strategy:
matrix:
ckan-version: ['2.10', '2.9', '2.9-py2', '2.8', '2.7']
ckan-git-org: ['ckan']
include:
- ckan-version: '2.8'
ckan-git-version: 'ckan-2.8.8-qgov.5'
ckan-git-org: 'qld-gov-au'
- ckan-version: '2.9'
ckan-git-version: 'ckan-2.9.5-qgov.10'
ckan-git-org: 'qld-gov-au'
- ckan-version: '2.9'
ckan-git-version: 'qgov-master-2.9.7'
ckan-git-org: 'qld-gov-au'
fail-fast: false
name: CKAN ${{ matrix.ckan-version }} ${{ matrix.ckan-git-org }} ${{ matrix.ckan-git-version }}
container:
image: openknowledge/ckan-dev:${{ matrix.ckan-version }}
services:
postgresql:
image: ckan/ckan-postgres-dev:${{ matrix.ckan-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: 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
moto:
image: motoserver/moto
ports:
- "5000"
solr:
image: ckan/ckan-solr:${{ matrix.ckan-version }}
env:
CKAN_SQLALCHEMY_URL: postgresql://ckan_default:pass@postgresql/ckan_test
CKAN_DATASTORE_WRITE_URL: postgresql://datastore_write:pass@postgresql/datastore_test
CKAN_DATASTORE_READ_URL: postgresql://datastore_read:pass@postgresql/datastore_test
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/1
CKAN_VERSION: ${{ matrix.ckan-version }}
CKAN_GIT_ORG: ${{ matrix.ckan-git-org }}
CKAN_GIT_VERSION: ${{ matrix.ckan-git-version }}
steps:
- uses: actions/checkout@v3
timeout-minutes: 2
- name: Install requirements
run: |
chmod u+x ./scripts/*
./scripts/build.sh
timeout-minutes: 15
- name: Setup CKAN
run: |
./scripts/init.sh
timeout-minutes: 15
- name: Run tests
run: |
./scripts/test.sh
timeout-minutes: 30