Proper implementation of ACCESS-OM3 SPD #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python Checks | |
on: | |
pull_request: | |
paths: | |
- '**.py' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.py' | |
jobs: | |
ruff-check: | |
name: Check syntax | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Get py files changed | |
id: get-files | |
uses: tj-actions/changed-files@v39 | |
with: | |
files: '**.py' | |
- uses: chartboost/ruff-action@v1 | |
with: | |
src: "${{ steps.get-files.outputs.all_changed_files }}" | |
args: "check --format github --preview --config .ruff.toml" |