Skip to content

Commit

Permalink
Getting Github Action to work
Browse files Browse the repository at this point in the history
  • Loading branch information
araichev committed Sep 26, 2024
1 parent 7271be6 commit f45e50a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
name: Run Tests

on:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v3

# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ["3.11", "3.12"]
python-version: ${{ matrix.python-version }}

# Install UV
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
# Sync the environment with UV (will create and use .venv)
- name: Sync project environment with UV
run: |
uv sync
# Run the tests using UV
- name: Run tests
run: |
uv run pytest
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Geohexgrid
.. image:: https://github.com/araichev/geohexgrid/actions/workflows/run_tests.yml/badge.svg
:target: https://github.com/araichev/geohexgrid/actions/workflows/run_tests.yml

A tiny Python 3.9+ library for making geographic flat-top hexagonal grids like QGIS's `create grid function <https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorcreation.html?highlight=create%20grid#create-grid>`_.
A tiny Python 3.10+ library for making geographic flat-top hexagonal grids like QGIS's `create grid function <https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorcreation.html?highlight=create%20grid#create-grid>`_.
That's it.
Not designed for making other kinds of grids or `discrete global grid systems <https://en.wikipedia.org/wiki/Discrete_global_grid>`_.

Expand Down Expand Up @@ -84,6 +84,7 @@ Changes
-----------------
- Bugfixed ``make_grid_from_bounds`` in response to `Issue 1 <https://github.com/mrcagney/geohexgrid/issues/2>`_.
- Switched from Poetry to UV for project management.
- Bumped Python version up to 3.10+.

2.0.0, 2023-11-14
-----------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "geohexgrid"
version = "2.1.0"
description = "A Python library for making geographic flat-top hexagon grids like QGIS's `create grid` function"
readme = "README.rst"
requires-python = ">=3.11,<4"
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Alex Raichev", email = "araichev@mrcagney.com" },
Expand Down

0 comments on commit f45e50a

Please sign in to comment.