Skip to content

Commit

Permalink
Fix 2.9 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 8, 2024
1 parent 7d66686 commit 1ef4054
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Tests
env:
COLUMNS: 120
on: [push, pull_request]
jobs:
lint:
Expand All @@ -17,13 +19,19 @@ jobs:
needs: lint
strategy:
matrix:
ckan-version: ["2.11", "2.10", 2.9]
include:
- ckan-version: "2.11"
ckan-image: "ckan/ckan-dev:2.11-py3.10"
- ckan-version: "2.10"
ckan-image: "ckan/ckan-dev:2.10-py3.10"
- ckan-version: "2.9"
ckan-image: "ckan/ckan-dev:2.9-py3.9"
fail-fast: false

name: CKAN ${{ matrix.ckan-version }}
runs-on: ubuntu-latest
container:
image: ckan/ckan-dev:${{ matrix.ckan-version }}
image: ${{ matrix.ckan-image }}
services:
solr:
image: ckan/ckan-solr:${{ matrix.ckan-version }}-solr9
Expand All @@ -45,16 +53,18 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install requirements
- name: Install requirements (common)
run: |
pip install -r requirements.txt
pip install -r dev-requirements.txt
- name: Install requirements (common)
run: |
pip install -e .
# Replace default path to CKAN core config file with the one on the container
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
- name: Setup other extension
- name: Install requirements (2.9)
run: |
pip install -U pytest-rerunfailures
if: ${{ matrix.ckan-version == '2.9' }}
- name: Setup other extensions
run: |
git clone https://github.com/ckan/ckanext-harvest
pip install -e ckanext-harvest
Expand Down

0 comments on commit 1ef4054

Please sign in to comment.