Skip to content

Commit cb9b75a

Browse files
Merge pull request #71 from GenomicDataInfrastructure/70-use-correct-scheming-extension-in-tests
70 use correct scheming extension in tests
2 parents 9f43bde + fb9a0dd commit cb9b75a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,33 +38,30 @@ jobs:
3838
steps:
3939
- uses: actions/checkout@v4
4040
- name: Install requirements
41-
# Install any extra requirements your extension has here (dev requirements, other extensions etc)
4241
run: |
4342
pip install -r requirements.txt
4443
pip install -r dev-requirements.txt
4544
pip install --upgrade pytest-rerunfailures
46-
pip install -e 'git+https://github.com/ckan/[email protected]#egg=ckanext-scheming[requirements]'
45+
pip install -e 'git+https://github.com/CivityNL/[email protected]-civity#egg=ckanext-scheming[requirements]'
4746
pip install -e 'git+https://github.com/ckan/[email protected]#egg=ckanext-harvest[requirements]'
4847
pip install -e 'git+https://github.com/ckan/[email protected]#egg=ckanext-dcat[requirements]'
4948
pip install -r https://raw.githubusercontent.com/ckan/ckanext-dcat/v1.5.1/requirements.txt
5049
python3 setup.py develop
5150
- name: Setup extension
52-
# Extra initialization steps
5351
run: |
54-
# Replace default path to CKAN core config file with the one on the container
5552
sed -i -e 's/use = config:.*/use = config:\/srv\/app\/src\/ckan\/test-core.ini/' test.ini
56-
5753
ckan -c test.ini db init
5854
- name: Run tests
59-
run: pytest --ckan-ini=test.ini --cov=ckanext.fairdatapoint --disable-warnings ckanext/fairdatapoint
55+
run: |
56+
pytest --ckan-ini=test.ini --cov=ckanext.fairdatapoint --disable-warnings ckanext/fairdatapoint
6057
- name: Generate coverage report
61-
run: coverage xml -o coverage.xml
58+
run: |
59+
coverage xml -o coverage.xml
6260
- name: SonarCloud Scan
6361
uses: sonarsource/sonarcloud-github-action@v2
6462
env:
6563
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
6664
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
67-
6865
- uses: actions/checkout@v4
6966
- name: REUSE Compliance Check
7067
uses: fsfe/reuse-action@v4

0 commit comments

Comments
 (0)