Skip to content

Commit

Permalink
Fix GH action error
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Oct 23, 2024
1 parent 30c4cbd commit 42227c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test-unckan-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,34 @@ jobs:

- name: Flake8
run: |
cd ckanext-unckan
pip install flake8
flake8 . \
--count \
--show-source \
--max-complexity=12 \
--max-line-length=130 \
--statistics
working-directory: ckanext-unckan
- name: Install requirements
# Install any extra requirements your extension has here (dev requirements, other extensions etc)
run: |
cd ckanext-unckan
pip install -r requirements.txt
pip install -r dev-requirements.txt
pip install -e .
working-directory: ckanext-unckan
- name: Setup extension
# Extra initialization steps
run: |
cd ckanext-unckan
# 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
ckan -c test.ini db init
# ckan -c test.ini db upgrade -p unckan
working-directory: ckanext-unckan
- name: Run tests
run: |
cd ckanext-unckan
pytest --ckan-ini=test.ini -v --disable-warnings ckanext/unckan
working-directory: ckanext-unckan

0 comments on commit 42227c9

Please sign in to comment.