Remove partial implementation for spark #175
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/osgeo/gdal:ubuntu-small-3.6.4 | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
apt-get -y update | |
apt-get -y install build-essential | |
python -m pip install GDAL==$(gdal-config --version) | |
python -m pip install requests pyproj shapely==1.8.* matplotlib pandas geopandas flake8 pytest | |
- name: Verify GDAL installation | |
run: | | |
gdal-config --version | |
- name: Lint with flake8 | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | |
flake8 . --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics | |
- name: Test with unittest | |
run: | | |
export PYTHONPATH= | |
export PYTHONPATH=$PYTHONPATH:geodataflow/api/ | |
export PYTHONPATH=$PYTHONPATH:geodataflow/core/ | |
export PYTHONPATH=$PYTHONPATH:geodataflow/spatial/ | |
export PYTHONPATH=$PYTHONPATH:geodataflow/dataframes/ | |
export PYTHONPATH=$PYTHONPATH:geodataflow/spark/ | |
export PYTHONPATH=$PYTHONPATH:geodataflow/sql/ | |
python -m unittest geodataflow/core/tests/test_*.py | |
python -m unittest geodataflow/spatial/tests/test_*.py | |
python -m unittest geodataflow/dataframes/tests/test_*.py |