mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 15:11:09 -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
|
gdal-config --libs
|
||||||
echo "Python path:" $PYTHONPATH
|
echo "Python path:" $PYTHONPATH
|
||||||
echo "Settings module:" $DJANGO_SETTINGS_MODULE
|
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
|
- name: Install Dependencies
|
||||||
env:
|
env:
|
||||||
GDAL_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libgdal.so
|
GDAL_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libgdal.so
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
GDAL_VERSION=$(gdal-config --version)
|
||||||
pip install wheel setuptools
|
pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal"
|
||||||
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
- name: Verify GDAL Installation
|
- name: Verify GDAL Installation
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user