diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..75df1d7 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: PyTest + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["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: | + python -m pip install --upgrade pip + pip install . + pip install pytest + - name: Test with pytest + run: | + pytest -v -s diff --git a/README.rst b/README.rst index a603e84..cd2a891 100644 --- a/README.rst +++ b/README.rst @@ -4,6 +4,8 @@ Tiletanic: Tools for Manipulating Geospatial Tiling Schemes .. image:: https://travis-ci.org/DigitalGlobe/tiletanic.svg?branch=master :target: https://travis-ci.org/DigitalGlobe/tiletanic +.. image:: https://github.com/DigitalGlobe/tiletanic/actions/workflows/test.yml/badge.svg + :target: https://github.com/DigitalGlobe/tiletanic/actions/workflows/test.yml?query=event%3Apull_request Tiletanic is a library for making and using geospatial tiling schemes. It's goal is to provide tooling for dealing with the conversion between a tile specified in as (row, column, zoom level), geospatial coordinates, or quadkeys. It also provides functionaly for taking an input geometry and figuring out what tiles cover it.