Skip to content

Commit

Permalink
Merge pull request pygridgen#58 from phobson/gha-workflows
Browse files Browse the repository at this point in the history
try 1: gha test runner via micromamba
  • Loading branch information
phobson authored Oct 25, 2024
2 parents 642c28a + 1a111a0 commit 3849b9e
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/python-run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run basic unit tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
# the create command looks like this:
micromamba-version: '2.0.2-2'
environment-name: test-env
create-args: >-
python=${{ matrix.python-version }}
gridgen
numpy
matplotlib
pyproj
pytest
coverage
docopt
requests
pyyaml
init-shell: bash
cache-environment: true
post-cleanup: 'all'
- name: Run Python tests
run: python check_pygridgen.py --verbose --durations=10
shell: bash -el {0}


4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@
# built documents.
#
# The short X.Y version.
version = '0.2.0'
version = '0.3.0'
# The full version, including alpha/beta/rc tags.
release = '0.2.0'
release = '0.3.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion pygridgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
'Paul Hobson <phobson@geosyntec.com>'
]

__version__ = '0.2.dev'
__version__ = '0.3.dev'
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@

setup(
name="pygridgen",
version='0.2.dev',
version='0.3.dev',
description=doclines[0],
long_description="\n".join(doclines),
author="Robert Hetland",
author_email="hetland@tamu.edu",
url="http://github.com/hetland/pygridgen",
packages=find_packages(exclude=[]),
license="MIT",
platforms="Python 2.7, 3.4, 3.5 and later.",
platforms="Python 3.9 and later.",
ext_package='pygridgen',
classifiers=classifiers.split("\n"),
install_requires=['numpy', 'matplotlib'],
)

0 comments on commit 3849b9e

Please sign in to comment.