Skip to content

Commit

Permalink
[ci/fix] Explicitly uninstall Django before installing required version
Browse files Browse the repository at this point in the history
In the "Install test dependencies" step,
the CI installs Django 4.2, which results in an
"ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf'".
during the QA checks step.

To avoid this, we need to explicitly uninstall
Django before installing the required version.
  • Loading branch information
Aryamanz29 committed Apr 21, 2023
1 parent 85da50b commit 1510b48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ jobs:
- name: Install openwisp-monitoring
run: |
pip install -U -I -e .
pip install --force-reinstall ${{ matrix.django-version }}
pip uninstall -y django
pip install ${{ matrix.django-version }}
- name: QA checks
run: |
Expand Down

0 comments on commit 1510b48

Please sign in to comment.