Skip to content

Commit

Permalink
Restrict running of black and pylint workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Feb 14, 2025
1 parent 097e2b3 commit bcb398d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@ name: black check on push and PR
#
# Run the python formatting in check mode
#
on: [push, pull_request]
on:
push:
paths:
- 'python/**'
- 'cime_config/SystemTests/**'
- 'cime_config/buildlib/**'
- 'cime_config/buildnml/**'
- '.github/workflows/black.yml'
pull_request:
paths:
- 'python/**'
- 'cime_config/SystemTests/**'
- 'cime_config/buildlib/**'
- 'cime_config/buildnml/**'
- '.github/workflows/black.yml'

jobs:
black-check:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
name: pylint check on push and PR
#
# Run the pylint formatting in check mode
# Run the pylint formatting
#
on: [push, pull_request]
on:
push:
paths:
- 'python/ctsm/**'
- 'python/requirements.txt'
- '.github/workflows/pylint.yml'
pull_request:
paths:
- 'python/ctsm/**'
- 'python/requirements.txt'
- '.github/workflows/pylint.yml'

jobs:
# Disabled pylint-check-old because 3.7.9 requires netCDF to be manually installed first
Expand Down

0 comments on commit bcb398d

Please sign in to comment.