Skip to content

Commit

Permalink
try 1: gha test runner via micromamba
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Oct 25, 2024
1 parent 642c28a commit 123f01d
Showing 1 changed file with 44 additions and 0 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}


0 comments on commit 123f01d

Please sign in to comment.