mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 13:31:08 -05:00
Improve CI workflow by setting up Python and upgrading pip, setuptools, and wheel before installing dependencies
This commit is contained in:
9
.github/workflows/django.yml
vendored
9
.github/workflows/django.yml
vendored
@@ -48,13 +48,16 @@ jobs:
|
||||
gdal-config --libs
|
||||
echo "Python path:" $PYTHONPATH
|
||||
echo "Settings module:" $DJANGO_SETTINGS_MODULE
|
||||
- name: Setup Python and pip
|
||||
run: |
|
||||
python -m ensurepip --upgrade
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
- name: Install Dependencies
|
||||
env:
|
||||
GDAL_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libgdal.so
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install wheel setuptools
|
||||
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
|
||||
GDAL_VERSION=$(gdal-config --version)
|
||||
pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal"
|
||||
pip install -r requirements.txt
|
||||
- name: Verify GDAL Installation
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user