mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:11:08 -05:00
Refactor CI workflow to install pip using get-pip.py and ensure system package compatibility
This commit is contained in:
10
.github/workflows/django.yml
vendored
10
.github/workflows/django.yml
vendored
@@ -50,15 +50,17 @@ jobs:
|
||||
echo "Settings module:" $DJANGO_SETTINGS_MODULE
|
||||
- name: Setup Python and pip
|
||||
run: |
|
||||
python -m ensurepip --upgrade
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
python get-pip.py --break-system-packages
|
||||
python -m pip --version
|
||||
- name: Install Dependencies
|
||||
env:
|
||||
GDAL_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libgdal.so
|
||||
run: |
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
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
|
||||
python -m pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal"
|
||||
python -m pip install -r requirements.txt
|
||||
- name: Verify GDAL Installation
|
||||
run: |
|
||||
pwd
|
||||
|
||||
Reference in New Issue
Block a user