Skip to content

Commit 9abe281

Browse files
committed
ci: update tests workflow configuration
1 parent 2bde92e commit 9abe281

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,27 @@ name: Tests
22
on: [push, pull_request]
33
jobs:
44
test:
5+
strategy:
6+
matrix:
7+
ckan-version: ["2.11", "2.10"]
8+
fail-fast: false
9+
510
runs-on: ubuntu-latest
611
container:
7-
image: ckan/ckan-dev:2.10-py3.10
12+
image: ckan/ckan-dev:${{ matrix.ckan-version }}-py3.10
813
options: --user root
914
services:
1015
solr:
11-
image: ckan/ckan-solr:2.10
16+
image: ckan/ckan-solr:${{ matrix.ckan-version }}-solr9
1217
postgres:
13-
image: ckan/ckan-postgres-dev:2.10
18+
image: ckan/ckan-postgres-dev:${{ matrix.ckan-version }}
1419
env:
1520
POSTGRES_USER: postgres
1621
POSTGRES_PASSWORD: postgres
1722
POSTGRES_DB: postgres
1823
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1924
redis:
20-
image: redis:3
25+
image: redis:3
2126
env:
2227
CKAN_SQLALCHEMY_URL: postgresql://ckan_default:pass@postgres/ckan_test
2328
CKAN_DATASTORE_WRITE_URL: postgresql://datastore_write:pass@postgres/datastore_test
@@ -28,16 +33,13 @@ jobs:
2833
steps:
2934
- uses: actions/checkout@v4
3035
- name: Install requirements
31-
# Install any extra requirements your extension has here (dev requirements, other extensions etc)
3236
run: |
3337
pip install --upgrade pip
3438
pip install -e '.[dev]'
3539
- name: Setup extension
36-
# Extra initialization steps
3740
run: |
3841
# Replace default path to CKAN core config file with the one on the container
3942
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
40-
4143
ckan -c test.ini db init
4244
- name: Run tests
4345
run: pytest --ckan-ini=test.ini --cov=ckanext.dimred --disable-warnings ckanext/dimred

0 commit comments

Comments
 (0)