Skip to content

Commit

Permalink
ci: added linting git action [2024-11-26]
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISCARLON committed Nov 26, 2024
1 parent 7e9270c commit 7c0b6da
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/herding_cats_explorer_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/herding_cats_linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: HerdingCats Linting

on:
push:
branches:
- main
paths:
- "**/*.py"

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

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff linting
run: ruff check .

0 comments on commit 7c0b6da

Please sign in to comment.