Skip to content

Feature request: pytest to run on pull requests #1042

@hkershaw-brown

Description

@hkershaw-brown

Use case

What are you trying to accomplish? Sometimes there may already be a way to do what you need.
We have a pytools directory, with each tool with it's own directory.
Run the tests for each tool on pull requests that change pytools.
There are other bits and bobs of python in the repo, e.g.
models/wrf_hydro/python/perturb/test_perturb.py
which would get run if we test the top level of DART, so at least to start only pytest pytools.

Is your feature request related to a problem?

Automating tests on pull requests for jests in the quest for success

Describe your preferred solution

github action that runs pytest

Also, documentation for the python tools, currently only pyjedi is documented, but users would
probably find the qceff pretty printer and the fortran find unused routines tool helpful.

Describe any alternatives you have considered

local testing. Also needs pyjedi tests. I have small files, might be better with unit tests for functions instead for the github action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions