Skip to content

Commit 9b33e38

Browse files
author
Hans-christian
committed
update extension in test.yaml
1 parent b36da53 commit 9b33e38

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,36 @@ jobs:
4848
pip install -r requirements.txt
4949
pip install -r dev-requirements.txt
5050
pip install -e .
51-
- name: Setup CKAN extensions (harvest, scheming, dcat)
51+
- name: Setup CKAN extensions (harvest, scheming, dcat, dataset-series, fluent)
5252
run: |
5353
# Harvest v1.6.1 from GitHub
5454
git clone https://github.com/ckan/ckanext-harvest
5555
cd ckanext-harvest
5656
git checkout tags/v1.6.1
5757
pip install -e .
5858
pip install -r requirements.txt
59-
60-
# Scheming (Civity fork)
61-
pip install -e 'git+https://github.com/CivityNL/[email protected]#egg=ckanext-scheming[requirements]'
62-
63-
# DCAT v2.4.0 from PyPI
64-
pip install ckanext-dcat==2.4.0
59+
cd ..
60+
61+
# Scheming release 3.1.0
62+
pip install -e 'git+https://github.com/ckan/[email protected]#egg=ckanext-scheming[requirements]'
63+
64+
# DCAT extension maintained for the GDI user portal
65+
pip install -e 'git+https://github.com/GenomicDataInfrastructure/[email protected]#egg=ckanext-dcat'
66+
if [ -f "${PIP_SRC}/ckanext-dcat/requirements.txt" ]; then
67+
pip install -r "${PIP_SRC}/ckanext-dcat/requirements.txt"
68+
fi
69+
70+
# Dataset series extension
71+
pip install -e 'git+https://github.com/GenomicDataInfrastructure/[email protected]#egg=ckanext-dataset-series'
72+
if [ -f "${PIP_SRC}/ckanext-dataset-series/requirements.txt" ]; then
73+
pip install -r "${PIP_SRC}/ckanext-dataset-series/requirements.txt"
74+
fi
75+
76+
# Fluent extension for multilingual support
77+
pip install -e 'git+https://github.com/ckan/ckanext-fluent.git#egg=ckanext-fluent'
78+
if [ -f "${PIP_SRC}/ckanext-fluent/requirements.txt" ]; then
79+
pip install -r "${PIP_SRC}/ckanext-fluent/requirements.txt"
80+
fi
6581
- name: Setup extension
6682
run: |
6783
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
@@ -74,8 +90,9 @@ jobs:
7490
coverage xml -o coverage.xml
7591
- name: Install unzip
7692
run: apt-get update && apt-get install -y unzip
77-
- name: SonarCloud Scan
78-
uses: sonarsource/sonarcloud-github-action@v5
93+
- name: Sonar scan
94+
uses: SonarSource/sonarqube-scan-action@v6
7995
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
96+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8197
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
98+
SONAR_HOST_URL: https://sonarcloud.io

test.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ error_email_from = ckan@localhost
99

1010
[app:main]
1111
use = config:../../src/ckan/test-core.ini
12-
ckanext.dcat.rdf.profiles = euro_dcat_ap
12+
ckanext.dcat.rdf.profiles = euro_dcat_ap gdi_userportal
1313
sqlalchemy.url = postgresql://ckan_default:password@localhost:5432/ckan_default
1414

1515
# Insert any custom config settings to be used when running your extension's
1616
# tests here. These will override the one defined in CKAN core's test-core.ini
17-
ckan.plugins = harvest gdi_userportalharvester gdi_userportal
17+
ckan.plugins = harvest scheming_datasets dataset_series dcat fluent gdi_userportalharvester gdi_userportal
1818

1919
# Logging configuration
2020
[loggers]

0 commit comments

Comments
 (0)