From 18f7f1d9abdbc7cb9f00fbf9de15e5e8ed821175 Mon Sep 17 00:00:00 2001 From: Pete Schmitt Date: Thu, 3 Apr 2025 15:12:19 -0600 Subject: [PATCH 1/2] Adds github action to run test suite --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3e7649f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Run Unit Test via 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 From 536fca5a0f76b703a7841d921d7ef6f9e80faa76 Mon Sep 17 00:00:00 2001 From: Pete Schmitt Date: Thu, 3 Apr 2025 15:17:37 -0600 Subject: [PATCH 2/2] Add PyTest badge --- .github/workflows/test.yml | 2 +- README.rst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3e7649f..75df1d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Run Unit Test via Pytest +name: PyTest on: [push] 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.