Skip to content

Commit

Permalink
Fix CI/CD issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Jan 15, 2023
1 parent 5385bcb commit 4437ae2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
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
1 change: 0 additions & 1 deletion geodataflow/core/geodataflow/core/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,4 +306,3 @@ def unpack(self, data_store) -> Iterable[object]:
yield row

pass

2 changes: 1 addition & 1 deletion geodataflow/core/geodataflow/core/settingsmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ def load_from_dict(self, settings_dict: Dict) -> "SettingsManager":
"""
Singleton for Application Configuration.
"""
ApplicationSettings: SettingsManager = SettingsManager()
ApplicationSettings = SettingsManager()
10 changes: 10 additions & 0 deletions geodataflow/dataframes/tests/data/test_feature_buffer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,20 @@
}
},
# Buffer of Geometries of input Features.
{
"type": "GeometryTransform",
"sourceCrs": 4326,
"targetCrs": 25830
},
{
"type": "GeometryBuffer",
"distance": 0.01
},
{
"type": "GeometryTransform",
"sourceCrs": 25830,
"targetCrs": 4326
},
# Save Features to GeoPackage.
{
"type": "FeatureWriter",
Expand Down
10 changes: 10 additions & 0 deletions geodataflow/dataframes/tests/data/test_feature_centroid.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,19 @@
}
},
# Centroid of Geometries of input Features.
{
"type": "GeometryTransform",
"sourceCrs": 4326,
"targetCrs": 25830
},
{
"type": "GeometryCentroid"
},
{
"type": "GeometryTransform",
"sourceCrs": 25830,
"targetCrs": 4326
},
# Save Features to GeoPackage.
{
"type": "FeatureWriter",
Expand Down
6 changes: 3 additions & 3 deletions geodataflow/dataframes/tests/test_geopandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def test_func(features):
feature = features[0]
self.assertEqual(feature.type, 'Feature')
self.assertEqual(feature.geometry.geom_type, 'Point')
self.assertAlmostEqual(feature.geometry.x, -1.6527555, places=6)
self.assertAlmostEqual(feature.geometry.y, 42.8170465, places=6)
self.assertAlmostEqual(feature.geometry.x, -1.652754, places=6)
self.assertAlmostEqual(feature.geometry.y, 42.817075, places=6)

self.process_pipeline(test_func, pipeline_file)
pass
Expand Down Expand Up @@ -240,7 +240,7 @@ def test_func(features):
feature = features[0]
self.assertEqual(feature.type, 'Feature')
self.assertEqual(feature.geometry.geom_type, 'Polygon')
self.assertAlmostEqual(feature.geometry.area, 0.0223177, places=6)
self.assertAlmostEqual(feature.geometry.area, 0.016489, places=6)

self.process_pipeline(test_func, pipeline_file)
pass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def params(self) -> Dict:
return {
'connectionString': {
'description':
"Connection string of the FeatureStore ('.csv', '.fgb', '.geojson', '.gpkg' and '.shp.zip' are supported).",
"Connection string of FeatureStore ('.csv', '.fgb', '.geojson', '.gpkg' and '.shp.zip' are supported).",
'dataType': 'string',
'default': 'output.gpkg',
'extensions': ['.csv', '.fgb', '.geojson', '.gpkg', '.shp.zip']
Expand Down

0 comments on commit 4437ae2

Please sign in to comment.