Skip to content

github action to run pytest for pushes to pytools directory#1044

Merged
hkershaw-brown merged 1 commit intomainfrom
pytools-github-action
Feb 27, 2026
Merged

github action to run pytest for pushes to pytools directory#1044
hkershaw-brown merged 1 commit intomainfrom
pytools-github-action

Conversation

@hkershaw-brown
Copy link
Member

Description:

Add a GitHub Actions workflow (pytools-tests.yml) which runs pytest on the pytools directory.
Only runs when when changes are made inside the pytools directory, any branch.
Does not run for changes elsewhere.

Gone with python versions 3.10 (<3.10 is end-of-life) to 3.14 (latest stable).

Fixes issue

fixes #1042

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Committed changes to pytools directory to run the action.
https://github.com/NCAR/DART/actions/runs/21884963160/job/63177362755
Committed changes to files outside pytools confirmed action does not run.

Screenshot 2026-02-10 at 5 34 14 PM

Note force pushed to this branch to remove these two test commits.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

Copy link
Contributor

@mjs2369 mjs2369 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hkershaw-brown nice addition to the actions! Everything looks good, including the test runs of the action

@hkershaw-brown hkershaw-brown added the release! bundle with next release label Feb 13, 2026
@hkershaw-brown hkershaw-brown merged commit ba073fd into main Feb 27, 2026
4 checks passed
@hkershaw-brown hkershaw-brown deleted the pytools-github-action branch February 27, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release! bundle with next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: pytest to run on pull requests

2 participants