Skip to content

Commit

Permalink
add ruff lint step to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBarker-NOAA committed Dec 20, 2024
1 parent 5a85a1c commit d814d3a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,23 @@ jobs:
- name: Run tests
run: scripts/test

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: ruff check
run: uv run ruff check bson/

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
check:
if: always()
needs: [test]
needs:
- test
- lint
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down

0 comments on commit d814d3a

Please sign in to comment.