Manage pytest requirements for CKAN versions
This commit is contained in:
parent
483d4d20ce
commit
97448b4887
|
@ -50,18 +50,25 @@ jobs:
|
|||
- name: Install requirements
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r dev-requirements.txt
|
||||
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 extension (CKAN 2.10)
|
||||
if: ${{ matrix.ckan-version == '2.10' }}
|
||||
run: |
|
||||
pip install -r dev-requirements.txt
|
||||
ckan -c test.ini db init
|
||||
ckan -c test.ini db upgrade -p googleanalytics
|
||||
- name: Setup extension (CKAN >= 2.9)
|
||||
if: ${{ matrix.ckan-version != '2.7' && matrix.ckan-version != '2.8' }}
|
||||
run: |
|
||||
pip install -r dev-requirements-2.9.txt
|
||||
ckan -c test.ini db init
|
||||
ckan -c test.ini db upgrade -p googleanalytics
|
||||
- name: Setup extension (CKAN < 2.9)
|
||||
if: ${{ matrix.ckan-version == '2.7' || matrix.ckan-version == '2.8' }}
|
||||
run: |
|
||||
pip install -r dev-requirements-2.9.txt
|
||||
paster --plugin=ckan db init -c test.ini
|
||||
paster --plugin=ckanext-googleanalytics initdb -c test.ini
|
||||
- name: Run tests
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
pytest-ckan
|
||||
pytestfactoryboy
|
Loading…
Reference in New Issue