stac-utils / pgstac

Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL
MIT License
153 stars 39 forks source link

Run continuous integration tests when code is changed in the `src` directory as well #322

Open mishaschwartz opened 4 days ago

mishaschwartz commented 4 days ago

This fixes #321 by building new docker images when any of the relevant files have changed (not just the ones in the docker/ directory.

Tests will run if either of the images are built which indicates that the code has changed in a way that requires testings. If neither images are built, this means that the testable code has not changed and the tests will not run.

This PR also fixes some errors reported by mypy and ruff while running the tests.

Note that this PR does not fix a failing pytest test since there is a discussion about how best to resolve it here: https://github.com/developmentseed/hydraters/issues/7