Skip to content

Commit

Permalink
Add Py3 tests and linter section
Browse files Browse the repository at this point in the history
  • Loading branch information
fulior committed Apr 14, 2022
1 parent d22109c commit 183336e
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,45 @@ on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ 2.7, 3.9 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '2.7'
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: pip install flake8 pycodestyle
- name: Check syntax
run: |
flake8 . --count --max-line-length=127 --show-source --statistics
test:
needs: lint
name: CKAN 2.9-py2
name: CKAN
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ckan-container-version: "2.9-py2"
ckan-postgres-version: "2.9"
ckan-solr-version: "2.9-solr8"
- ckan-container-version: "2.9"
ckan-postgres-version: "2.9"
ckan-solr-version: "2.9-solr8"
- ckan-container-version: "2.10"
ckan-postgres-version: "2.10"
ckan-solr-version: "2.10"

container:
image: openknowledge/ckan-dev:2.9-py2
image: openknowledge/ckan-dev:${{ matrix.ckan-container-version }}
services:
solr:
image: ckan/ckan-solr-dev:2.9-py2
image: ckan/ckan-solr:${{ matrix.ckan-solr-version }}
postgres:
image: ckan/ckan-postgres-dev:2.9-py2
image: ckan/ckan-postgres-dev:${{ matrix.ckan-postgres-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand Down

0 comments on commit 183336e

Please sign in to comment.