diff --git a/.github/workflows/test-superset-extension.yml b/.github/workflows/test-superset-extension.yml index 7dc177c..8215ddc 100644 --- a/.github/workflows/test-superset-extension.yml +++ b/.github/workflows/test-superset-extension.yml @@ -53,11 +53,14 @@ jobs: pip install -e . - name: flake8 - run: python3 -m flake8 ckanext --count --show-source --max-complexity=12 --max-line-length=130 --statistics + run: | + source .venv/bin/activate + flake8 ckanext --count --show-source --max-complexity=12 --max-line-length=130 --statistics - name: Setup extension shell: bash run: | + source .venv/bin/activate ckan -c test.ini db init # echo "Applying migrations for superset" # ckan -c test.ini db upgrade -p superset @@ -65,4 +68,5 @@ jobs: - name: Run tests shell: bash run: | + source .venv/bin/activate pytest --ckan-ini=test.ini -v --disable-warnings ckanext/superset