Skip to content

Commit 5dc55c9

Browse files
committed
revert: change workflow tests back
1 parent e280cf4 commit 5dc55c9

2 files changed

Lines changed: 13 additions & 33 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,14 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
set -e
28-
python -m pip install --upgrade pip
29-
python -m pip install pytest wheel numpy
30-
31-
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
27+
pip install pytest wheel numpy
28+
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
3229
sudo apt-get update
33-
sudo apt-get install -y gdal-bin libgdal-dev python3-gdal libspatialindex-dev
34-
35-
export CFLAGS="$(gdal-config --cflags)"
36-
export LDFLAGS="$(gdal-config --libs)"
37-
export CPATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPATH" || true
38-
export CPLUS_INCLUDE_PATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPLUS_INCLUDE_PATH" || true
39-
40-
python -m pip install "GDAL==$(gdal-config --version)" || \
41-
python -m pip install --no-binary GDAL "GDAL==$(gdal-config --version)"
42-
43-
# Install repo requirements
44-
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
30+
sudo apt-get install gdal-bin python3-gdal
31+
sudo apt-get install libgdal-dev
32+
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
33+
sudo apt-get install libspatialindex-dev
34+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4535
- name: Integration tests with pytest
4636
run: |
4737
pytest -v ./tests/test_integration.py --html=mobility-catalogs-integration-tests-report.html --self-contained-html

.github/workflows/unit_tests.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,14 @@ jobs:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies
2626
run: |
27-
set -e
28-
python -m pip install --upgrade pip
29-
python -m pip install pytest wheel numpy
30-
27+
pip install pytest wheel numpy
3128
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
3229
sudo apt-get update
33-
sudo apt-get install -y gdal-bin libgdal-dev python3-gdal libspatialindex-dev
34-
35-
export CFLAGS="$(gdal-config --cflags)"
36-
export LDFLAGS="$(gdal-config --libs)"
37-
export CPATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPATH" || true
38-
export CPLUS_INCLUDE_PATH="$(gdal-config --cflags | sed 's/-I//g' | awk '{print $1}'):$CPLUS_INCLUDE_PATH" || true
39-
40-
python -m pip install "GDAL==$(gdal-config --version)" || \
41-
python -m pip install --no-binary GDAL "GDAL==$(gdal-config --version)"
42-
43-
# Install repo requirements
44-
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
30+
sudo apt-get install gdal-bin python3-gdal
31+
sudo apt-get install libgdal-dev
32+
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
33+
sudo apt-get install libspatialindex-dev
34+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
4535
- name: Unit tests with pytest
4636
run: |
4737
pytest --ignore=./tests/test_integration.py --html=mobility-catalogs-unit-tests-report.html --self-contained-html

0 commit comments

Comments
 (0)