mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:31:07 -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
|
echo "Settings module:" $DJANGO_SETTINGS_MODULE
|
||||||
- name: Setup Python and pip
|
- name: Setup Python and pip
|
||||||
run: |
|
run: |
|
||||||
python -m ensurepip --upgrade
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python get-pip.py --break-system-packages
|
||||||
|
python -m pip --version
|
||||||
- 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 setuptools wheel
|
||||||
GDAL_VERSION=$(gdal-config --version)
|
GDAL_VERSION=$(gdal-config --version)
|
||||||
pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal"
|
python -m pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal"
|
||||||
pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
- name: Verify GDAL Installation
|
- name: Verify GDAL Installation
|
||||||
run: |
|
run: |
|
||||||
pwd
|
pwd
|
||||||
|
|||||||
Reference in New Issue
Block a user